Replace small-modulo uses with optimized helpers
This commit is contained in:
1 parent
ca866ffc5b
commit
3598f88aaf
9 files changed
+46
-38
No files matched your search
@@ -21,7 +21,7 @@ public class MersenneNumberResidueCpuTester
|
||||
q.Mod10_8_5_3(out ulong r10, out ulong r8, out ulong r5, out ulong r3);
|
||||
// Step residues for q += 2*p
|
||||
twoP.Mod10_8_5_3(out ulong step10, out ulong step8, out ulong step5, out ulong step3);
|
||||
step10 %= 10UL;
|
||||
step10 = step10.Mod10();
|
||||
|
||||
// Allowed last-digit sets for q depending on last digit of M_p
|
||||
// lastIsSeven == true => allow {7,9}
|
||||
|
||||
Reference in new issue
Block a user