public static void reduce(int[] xx, int[] z) { long cc = Nat256.mul33Add(PInv33, xx, 8, xx, 0, z, 0); int c = Nat256.mul33DWordAdd(PInv33, cc, z, 0); // assert c == 0L || c == 1L; if (c != 0 || (z[7] == P7 && Nat256.gte(z, P))) { Nat.add33To(8, PInv33, z); } }
public static void reduce(int[] xx, int[] z) { long cc = Nat256.mul33Add(PInv33, xx, 8, xx, 0, z, 0); int c = Nat256.mul33DWordAdd(PInv33, cc, z, 0); // assert c == 0L || c == 1L; if (c != 0 || (z[7] == P7 && Nat256.gte(z, P))) { Nat.add33To(8, PInv33, z); } }