Example #1
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>The hash code for this instance.</returns>
 public override Int32 GetHashCode()
 {
     return(HigherHalf.GetHashCode() ^ LowerHalf.GetHashCode());
 }
Example #2
0
        public Int32 CompareTo(Value128 other)
        {
            var difference = HigherHalf.CompareTo(other.HigherHalf);

            return(difference == 0 ? LowerHalf.CompareTo(other.LowerHalf) : difference);
        }