public static int[] fromBigInteger(BigInteger x) { int[] z = Nat224.fromBigInteger(x); if (z[6] == P6 && Nat224.gte(z, P)) { Nat.add33To(7, PInv33, z); } return z; }
public static void twice(int[] x, int[] z) { int c = Nat.shiftUpBit(7, x, 0, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } } }
public static void addOne(int[] x, int[] z) { int c = Nat.inc(7, x, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { addPInvTo(z); } }
public static void reduce32(int x, int[] z) { if ((x != 0 && Nat224.mul33WordAdd(PInv33, x, z, 0) != 0) || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } }
public static int[] fromBigInteger(BigInteger x) { int[] z = Nat224.fromBigInteger(x); if (z[6] == P6 && Nat224.gte(z, P)) { Nat224.subFrom(P, z); } return z; }
public static void addOne(int[] x, int[] z) { int c = Nat.inc(7, x, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } }
public static boolean diff(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) { boolean pos = gte(x, xOff, y, yOff); if (pos) { sub(x, xOff, y, yOff, z, zOff); } else { sub(y, yOff, x, xOff, z, zOff); } return pos; }
public static void add(int[] x, int[] y, int[] z) { int c = Nat224.add(x, y, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { addPInvTo(z); } }
public static void addOne(int[] x, int[] z) { int c = Nat.inc(7, x, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { addPInvTo(z); } }
public static void twice(int[] x, int[] z) { int c = Nat.shiftUpBit(7, x, 0, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { addPInvTo(z); } }
public static boolean diff(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) { boolean pos = gte(x, xOff, y, yOff); if (pos) { sub(x, xOff, y, yOff, z, zOff); } else { sub(y, yOff, x, xOff, z, zOff); } return pos; }
public static void add(int[] x, int[] y, int[] z) { int c = Nat224.add(x, y, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } }
public static void addOne(int[] x, int[] z) { int c = Nat.inc(7, x, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } }
public static void twice(int[] x, int[] z) { int c = Nat.shiftUpBit(7, x, 0, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } } }
public static void add(int[] x, int[] y, int[] z) { int c = Nat224.add(x, y, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } }
public static int[] fromBigInteger(BigInteger x) { int[] z = Nat224.fromBigInteger(x); if (z[6] == P6 && Nat224.gte(z, P)) { Nat.add33To(7, PInv33, z); } return z; }
public static void reduce32(int x, int[] z) { if ((x != 0 && Nat224.mul33WordAdd(PInv33, x, z, 0) != 0) || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } }
public static void twice(int[] x, int[] z) { int c = Nat.shiftUpBit(7, x, 0, z); if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { addPInvTo(z); } }
public static void reduce(int[] xx, int[] z) { long cc = Nat224.mul33Add(PInv33, xx, 7, xx, 0, z, 0); int c = Nat224.mul33DWordAdd(PInv33, cc, z, 0); // assert c == 0L || c == 1L; if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } }
public static void reduce(int[] xx, int[] z) { long cc = Nat224.mul33Add(PInv33, xx, 7, xx, 0, z, 0); int c = Nat224.mul33DWordAdd(PInv33, cc, z, 0); // assert c == 0L || c == 1L; if (c != 0 || (z[6] == P6 && Nat224.gte(z, P))) { Nat.add33To(7, PInv33, z); } }