Refactor GPU powmod helpers into ULongExtensions

This commit is contained in:
Marek Lemańczyk committed 2025-10-24 17:26:55 +02:00
1 parent 557bc5d06f
commit cc281ab423
3 files changed
+87 -127

No files matched your search

@@ -18,7 +18,7 @@ internal static class DivisorByDivisorKernels
int globalIndex = index;
ulong modulus = divisors[globalIndex];
ulong exponent = exponents[globalIndex];
ulong result = ExponentRemainderStepperGpu.Pow2ModWindowed(exponent, modulus);
ulong result = ULongExtensions.Pow2ModWindowedGpuKernel(exponent, modulus);
byte hit = result == 1UL ? (byte)1 : (byte)0;
hits[globalIndex] = hit;