aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mp_ia32
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mp_ia32')
-rw-r--r--modules/mp_ia32/mp_asm.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/mp_ia32/mp_asm.h b/modules/mp_ia32/mp_asm.h
index 937aee598..873b88f46 100644
--- a/modules/mp_ia32/mp_asm.h
+++ b/modules/mp_ia32/mp_asm.h
@@ -24,15 +24,15 @@ extern "C" {
/*************************************************
* Word Multiply *
*************************************************/
-inline word word_madd2(word a, word b, word c, word* carry)
+inline word word_madd2(word a, word b, word* c)
{
asm(
ASM("mull %[b]")
ASM("addl %[c],%[a]")
ASM("adcl $0,%[carry]")
- : [a]"=a"(a), [b]"=rm"(b), [carry]"=&d"(*carry)
- : "0"(a), "1"(b), [c]"g"(c) : "cc");
+ : [a]"=a"(a), [b]"=rm"(b), [carry]"=&d"(*c)
+ : "0"(a), "1"(b), [c]"g"(*c) : "cc");
return a;
}
@@ -40,7 +40,7 @@ inline word word_madd2(word a, word b, word c, word* carry)
/*************************************************
* 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)
{
asm(
ASM("mull %[b]")
@@ -51,8 +51,8 @@ inline word word_madd3(word a, word b, word c, word d, word* carry)
ASM("addl %[d],%[a]")
ASM("adcl $0,%[carry]")
- : [a]"=a"(a), [b]"=rm"(b), [carry]"=&d"(*carry)
- : "0"(a), "1"(b), [c]"g"(c), [d]"g"(d) : "cc");
+ : [a]"=a"(a), [b]"=rm"(b), [carry]"=&d"(*d)
+ : "0"(a), "1"(b), [c]"g"(c), [d]"g"(*d) : "cc");
return a;
}