diff options
author | Jack Lloyd <[email protected]> | 2018-03-22 11:10:00 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-22 11:10:00 -0400 |
commit | 6ca983e6c392ac75ac62701a1c7190564c738285 (patch) | |
tree | d7647267a0f7e22bb3fe0c2a60eeb84d8570414f /src/lib/math | |
parent | 461b11afbd8e8af795e3327592c9338c7f07458b (diff) |
Tiny optimization in Montgomery inverse
Diffstat (limited to 'src/lib/math')
-rw-r--r-- | src/lib/math/numbertheory/numthry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/numbertheory/numthry.cpp b/src/lib/math/numbertheory/numthry.cpp index 3a0914bd4..4ba296536 100644 --- a/src/lib/math/numbertheory/numthry.cpp +++ b/src/lib/math/numbertheory/numthry.cpp @@ -128,7 +128,7 @@ size_t almost_montgomery_inverse(BigInt& result, if(r >= p) { - r = r - p; + r -= p; } result = p - r; |