From 6928d43aee377df8ea835f2488d1696614685630 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sat, 18 Oct 2025 17:48:38 +0200 Subject: [PATCH] TODO added --- .../Pow2MontgomeryModBenchmarks.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EvenPerfectBitScanner.Benchmarks/Pow2MontgomeryModBenchmarks.cs b/EvenPerfectBitScanner.Benchmarks/Pow2MontgomeryModBenchmarks.cs index 0c7aed3..3c4f26e 100644 --- a/EvenPerfectBitScanner.Benchmarks/Pow2MontgomeryModBenchmarks.cs +++ b/EvenPerfectBitScanner.Benchmarks/Pow2MontgomeryModBenchmarks.cs @@ -367,9 +367,10 @@ public class Pow2MontgomeryModBenchmarks return result.MontgomeryMultiply(1UL, modulus, nPrime); } + // TODO: Update it with the latest implementations private static ulong Pow2MontgomeryModSlidingWindow(ulong exponent, in MontgomeryDivisorData divisor) { - ulong modulus = divisor.Modulus; + ulong modulus = divisor.Modulus; if (modulus <= 1UL || (modulus & 1UL) == 0UL) { return 0UL; @@ -426,6 +427,7 @@ public class Pow2MontgomeryModBenchmarks return result.MontgomeryMultiply(1UL, modulus, nPrime); } + // TODO: Update it with the latest implementations, if it exists in production code. Otherwise just remove TODO private static ulong Pow2ModBinary(ulong exponent, ulong modulus) { if (modulus <= 1UL || (modulus & 1UL) == 0UL)