aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-22 11:10:00 -0400
committerJack Lloyd <[email protected]>2018-03-22 11:10:00 -0400
commit6ca983e6c392ac75ac62701a1c7190564c738285 (patch)
treed7647267a0f7e22bb3fe0c2a60eeb84d8570414f /src/lib/math
parent461b11afbd8e8af795e3327592c9338c7f07458b (diff)
Tiny optimization in Montgomery inverse
Diffstat (limited to 'src/lib/math')
-rw-r--r--src/lib/math/numbertheory/numthry.cpp2
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;