Skip to content

Commit d5b5641

Browse files
committed
block PollardRhoBrent31 for numbers > 31 bit
1 parent f54d8b3 commit d5b5641

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/de/tilman_neumann/jml/factor/FactorizerTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ private void testRange(int bits) {
218218
if (bits>52 && algName.startsWith("SquFoF31")) continue; // int implementation
219219
if (bits>59 && algName.startsWith("Lehman")) continue; // TODO make it work again for 60 bit?
220220
if (bits>31 && algName.startsWith("TDiv31")) continue; // int implementation
221-
if (bits>31 && algName.startsWith("PollardRho31")) continue; // long implementation
221+
if (bits>31 && algName.startsWith("PollardRho31")) continue; // int implementation
222+
if (bits>31 && algName.startsWith("PollardRhoBrent31")) continue; // int implementation
222223
if (bits>42 && algName.startsWith("TDiv63Inverse")) continue; // not enough primes stored
223224
if (bits>57 && algName.equals("PollardRhoBrentMontgomeryR64Mul63")) continue; // very slow above
224225
if (bits>28 && algName.startsWith("HartMultiplierChainSqrtN")) continue; // no multipliers for bigger N

0 commit comments

Comments
 (0)