MulAdd optimized
This commit is contained in:
1 parent
6c4fa7fcf6
commit
0ff93e1d09
3 files changed
+68
-66
No files matched your search
@@ -1327,7 +1327,7 @@ internal static partial class PrimeOrderCalculator
|
||||
{
|
||||
ref MutableUInt128 polynomial = ref s_pollardRhoPolynomialBuffer;
|
||||
polynomial.Set(x);
|
||||
polynomial.Multiply(x);
|
||||
polynomial.Mul(x);
|
||||
polynomial.Add(c);
|
||||
return polynomial.Mod(modulus);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user