aboutsummaryrefslogtreecommitdiffstats
path: root/src/mp_misc.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-06 14:45:05 +0000
committerlloyd <[email protected]>2006-06-06 14:45:05 +0000
commitd3522b3622ac4aad18215bc173f9e26953c6cc3d (patch)
tree9e5a9e947fc57b83700877a1261b307030ae09ff /src/mp_misc.cpp
parent71ef9df15a45af4d49070336a2dfc0a703a3c21e (diff)
Remove one parameter from word_madd2 and word_madd3
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);
}