aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-06 14:17:13 +0000
committerlloyd <[email protected]>2006-06-06 14:17:13 +0000
commit71ef9df15a45af4d49070336a2dfc0a703a3c21e (patch)
treefb82a241935f21abdd354d3c9e7455ecb55b43cb /src
parent151fafd005fc553c26f0ea2e198919af3024c508 (diff)
Try to normalize all calls to word_madd{2,3} so that the last two
arguments are always the same (and thus allow removing a parameter from each call).
Diffstat (limited to 'src')
-rw-r--r--src/mp_misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mp_misc.cpp b/src/mp_misc.cpp
index 4b5cf1fc9..f551948b7 100644
--- a/src/mp_misc.cpp
+++ b/src/mp_misc.cpp
@@ -17,7 +17,7 @@ u32bit bigint_divcore(word q, word y1, word y2,
word x1, word x2, word x3)
{
word y0 = 0;
- y2 = word_madd2(q, y2, 0, &y0);
+ y2 = word_madd2(q, y2, y0, &y0);
y1 = word_madd2(q, y1, y0, &y0);
if(y0 > x1) return 1;
@@ -81,7 +81,7 @@ word bigint_modop(word n1, word n0, word d)
{
word z = bigint_divop(n1, n0, d);
word dummy = 0;
- z = word_madd2(z, d, 0, &dummy);
+ z = word_madd2(z, d, dummy, &dummy);
return (n0-z);
}