Ejemplo n.º 1
0
 private Int128(ulong s1, ulong s0)
 {
     this.u = new UInt128(s1, s0);
 }
Ejemplo n.º 2
0
 private Int128(UInt128 u)
 {
     this.u = u;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Compares two 128-bit integers.
 /// </summary>
 /// <param name="x">The first integer.</param>
 /// <param name="y">The second integer.</param>
 /// <returns>1 if <paramref name="x"/> is greater, -1 if <paramref name="y"/> is greater,
 /// and 0 if <paramref name="x"/> and <paramref name="y"/> are equal.</returns>
 public static int Compare(Int128 x, Int128 y)
 {
     return(UInt128.Compare(x.u ^ mask, y.u ^ mask));
 }