aboutsummaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-15 17:05:30 +0000
committerlloyd <[email protected]>2009-10-15 17:05:30 +0000
commit10db0e9d7d9bab7c3bf4e1560e04ae6b8ba5b8b3 (patch)
treeeed14a6ae42e76a233340e52d08eb83a0885d5e9 /src/math
parent5af082273a76205be07f510c3b82871ae88561fa (diff)
Also enable x86 asm word_add
Diffstat (limited to 'src/math')
-rw-r--r--src/math/bigint/mp_ia32/mp_asmi.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/math/bigint/mp_ia32/mp_asmi.h b/src/math/bigint/mp_ia32/mp_asmi.h
index 28b99abcc..46bf302d5 100644
--- a/src/math/bigint/mp_ia32/mp_asmi.h
+++ b/src/math/bigint/mp_ia32/mp_asmi.h
@@ -70,20 +70,12 @@ extern "C" {
*/
inline word word_add(word x, word y, word* carry)
{
-#if 0
asm(
ADD_OR_SUBTRACT(ASM("adcl %[y],%[x]"))
: [x]"=r"(x), [carry]"=r"(*carry)
: "0"(x), [y]"rm"(y), "1"(*carry)
: "cc");
return x;
-#else
- word z = x + y;
- word c1 = (z < x);
- z += *carry;
- *carry = c1 | (z < *carry);
- return z;
-#endif
}
/*