TODO added
This commit is contained in:
1 parent
14b72a6a2a
commit
6928d43aee
1 file changed
+2
@@ -367,6 +367,7 @@ public class Pow2MontgomeryModBenchmarks
|
|||||||
return result.MontgomeryMultiply(1UL, modulus, nPrime);
|
return result.MontgomeryMultiply(1UL, modulus, nPrime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Update it with the latest implementations
|
||||||
private static ulong Pow2MontgomeryModSlidingWindow(ulong exponent, in MontgomeryDivisorData divisor)
|
private static ulong Pow2MontgomeryModSlidingWindow(ulong exponent, in MontgomeryDivisorData divisor)
|
||||||
{
|
{
|
||||||
ulong modulus = divisor.Modulus;
|
ulong modulus = divisor.Modulus;
|
||||||
@@ -426,6 +427,7 @@ public class Pow2MontgomeryModBenchmarks
|
|||||||
return result.MontgomeryMultiply(1UL, modulus, nPrime);
|
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)
|
private static ulong Pow2ModBinary(ulong exponent, ulong modulus)
|
||||||
{
|
{
|
||||||
if (modulus <= 1UL || (modulus & 1UL) == 0UL)
|
if (modulus <= 1UL || (modulus & 1UL) == 0UL)
|
||||||
|
|||||||
Reference in new issue
Block a user