diff options
author | lloyd <[email protected]> | 2006-06-06 15:13:50 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-06 15:13:50 +0000 |
commit | 69df9ac7fdaf575474e3904e08ad6974d06e9379 (patch) | |
tree | fb82a241935f21abdd354d3c9e7455ecb55b43cb /src/mp_misc.cpp | |
parent | d3522b3622ac4aad18215bc173f9e26953c6cc3d (diff) |
Revert the last change; it turned out to require a bunch of changes to the
assembly code in order to handle the argument aliasing correctly, and it
seems I don't understand GCC's extended asm syntax well enough to figure
out how to get it work in a way that isn't hideous.
Diffstat (limited to 'src/mp_misc.cpp')
-rw-r--r-- | src/mp_misc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mp_misc.cpp b/src/mp_misc.cpp index 782ad9d15..f551948b7 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); - y1 = word_madd2(q, y1, &y0); + y2 = word_madd2(q, y2, y0, &y0); + y1 = word_madd2(q, y1, y0, &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 carry = 0; - z = word_madd2(z, d, &carry); + word dummy = 0; + z = word_madd2(z, d, dummy, &dummy); return (n0-z); } |