Revert "Use standard modular math for single-use GPU exponent checks"

This commit is contained in:
Marek Lemańczyk authored and GitHub committed 2025-10-13 04:59:42 +02:00
1 parent ad6a5c6e61
commit 8b02993bac
6 files changed
+16 -71

No files matched your search

@@ -109,13 +109,6 @@ internal sealed class MersenneNumberDivisorResidueGpuEvaluator : IDisposable
}
ulong exponent = exponents[idx];
ulong modulus = divisorData.Modulus;
if (modulus <= 1UL || (modulus & 1UL) == 0UL)
{
results[idx] = 0UL;
return;
}
results[idx] = exponent.Pow2ModBinaryGpu(modulus);
results[idx] = exponent.Pow2MontgomeryModWindowedGpu(divisorData, keepMontgomery: true);
}
}