Reuse stack buffers when lowering divisor exponents
This commit is contained in:
1 parent
1b3a89ca53
commit
c15405e3b1
4 files changed
+497
-172
No files matched your search
@@ -27,6 +27,11 @@ internal struct ExponentRemainderStepper
|
||||
|
||||
public ulong PreviousExponent => _previousExponent;
|
||||
|
||||
public bool MatchesDivisor(in MontgomeryDivisorData divisor)
|
||||
{
|
||||
return _modulus == divisor.Modulus && _nPrime == divisor.NPrime && _montgomeryOne == divisor.MontgomeryOne;
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
_previousExponent = 0UL;
|
||||
|
||||
Reference in new issue
Block a user