aboutsummaryrefslogtreecommitdiffstats
path: root/src/mp_misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mp_misc.cpp')
-rw-r--r--src/mp_misc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mp_misc.cpp b/src/mp_misc.cpp
index f551948b7..782ad9d15 100644
--- a/src/mp_misc.cpp
+++ b/src/mp_misc.cpp
@@ -17,8 +17,8 @@ u32bit bigint_divcore(word q, word y1, word y2,
word x1, word x2, word x3)
{
word y0 = 0;
- y2 = word_madd2(q, y2, y0, &y0);
- y1 = word_madd2(q, y1, y0, &y0);
+ y2 = word_madd2(q, y2, &y0);
+ y1 = word_madd2(q, y1, &y0);
if(y0 > x1) return 1;
if(y0 < x1) return 0;
@@ -80,8 +80,8 @@ word bigint_divop(word n1, word n0, word d)
word bigint_modop(word n1, word n0, word d)
{
word z = bigint_divop(n1, n0, d);
- word dummy = 0;
- z = word_madd2(z, d, dummy, &dummy);
+ word carry = 0;
+ z = word_madd2(z, d, &carry);
return (n0-z);
}