diff options
author | lloyd <[email protected]> | 2008-03-10 17:25:28 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-03-10 17:25:28 +0000 |
commit | 58f9a9c32dae6c359451d682f6120fb170a7dd3f (patch) | |
tree | 82c188e8698eb8fb64a0e3347f7d8eda7d2dd6cd | |
parent | 07837c7699fbe4c2474c8a2fe20c71888d57eef0 (diff) |
Update mp_asm64 module to use new signatures for word_madd{2,3} functions1.7.4
-rw-r--r-- | modules/mp_asm64/mp_asm.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/mp_asm64/mp_asm.h b/modules/mp_asm64/mp_asm.h index 6abab6166..214c046e9 100644 --- a/modules/mp_asm64/mp_asm.h +++ b/modules/mp_asm64/mp_asm.h @@ -53,31 +53,31 @@ namespace Botan { /************************************************* * Word Multiply/Add * *************************************************/ -inline word word_madd2(word a, word b, word c, word* carry) +inline word word_madd2(word a, word b, word* c) { word z0 = 0, z1 = 0; BOTAN_WORD_MUL(a, b, z1, z0); - z1 += c; if(z1 < c) z0++; + z1 += *c; if(z1 < *c) z0++; - *carry = z0; + *c = z0; return z1; } /************************************************* * Word Multiply/Add * *************************************************/ -inline word word_madd3(word a, word b, word c, word d, word* carry) +inline word word_madd3(word a, word b, word c, word* d) { word z0 = 0, z1 = 0; BOTAN_WORD_MUL(a, b, z1, z0); z1 += c; if(z1 < c) z0++; - z1 += d; if(z1 < d) z0++; + z1 += *d; if(z1 < *d) z0++; - *carry = z0; + *d = z0; return z1; } |