Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Mantissa.GetHashCode() * 397) ^ Exponent);
     }
 }
Ejemplo n.º 2
0
    public override int GetHashCode()
    {
        var hashCode = 779356851;

        hashCode = hashCode * -1521134295 + Mantissa.GetHashCode();
        hashCode = hashCode * -1521134295 + Exponent.GetHashCode();
        return(hashCode);
    }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable NonReadonlyMemberInGetHashCode
         return((Mantissa.GetHashCode() * 397) ^ Exponent);
         // ReSharper restore NonReadonlyMemberInGetHashCode
     }
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = MbfDigitCount.GetHashCode();
         hashCode = (hashCode * 397) ^ MbfMantissaBits.GetHashCode();
         hashCode = (hashCode * 397) ^ MbfByteSize.GetHashCode();
         hashCode = (hashCode * 397) ^ MbfBias.GetHashCode();
         hashCode = (hashCode * 397) ^ MbfCarryMask.GetHashCode();
         // ReSharper disable NonReadonlyMemberInGetHashCode
         hashCode = (hashCode * 397) ^ IsNegitive.GetHashCode();
         hashCode = (hashCode * 397) ^ Mantissa.GetHashCode();
         hashCode = (hashCode * 397) ^ Exponent.GetHashCode();
         // ReSharper restore NonReadonlyMemberInGetHashCode
         return(hashCode);
     }
 }
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     return(Mantissa.GetHashCode() * 7 + Exponent.GetHashCode() * 17);
 }