Test batch Mersenne residue computation

This commit is contained in:
Marek Lemańczyk committed 2025-09-10 18:06:08 +02:00
1 parent b404c51d66
commit 52a1e44811
3 files changed
+156 -1

No files matched your search

+1 -1
View File
@@ -326,7 +326,7 @@ public ref struct GpuKernelLease(IDisposable limiter, GpuContextLease gpu, Kerne
return;
}
}
if (GpuUInt128.Pow2Mod(exponent, q) != GpuUInt128.One)
if (GpuUInt128.Pow2Minus1Mod(exponent, q) != GpuUInt128.Zero)
{
orders[index] = 0UL;
return;