Retire outdated windowed pow2 TODOs

This commit is contained in:
Marek Lemańczyk committed 2025-10-20 18:37:21 +02:00
1 parent 360a31bd54
commit 481d1010e8
8 files changed
+15 -19

No files matched your search

+2 -3
View File
@@ -985,9 +985,8 @@ public class MersenneDivisorCycles
private static ulong CalculateCycleLengthFallback(ulong divisor)
{
// Otherwise, find order of 2 mod divisor using the shared unrolled-hex stepping sequence.
// TODO: Expose a GPU-first branch here so high divisors leverage the ProcessEightBitWindows
// kernel measured fastest in CycleLengthGpuVsCpuBenchmarks, returning the result without
// storing it in the shared cache.
// Divisors <= 3 hit this fallback, so the lightweight CPU path already matches the windowed pow2 helper
// without paying for a GPU round-trip.
return divisor.CalculateMersenneDivisorCycleLengthUnrolledHexCpu();
}