aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/bigint/mp_amd64
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-15 16:49:51 +0000
committerlloyd <[email protected]>2009-10-15 16:49:51 +0000
commit5af082273a76205be07f510c3b82871ae88561fa (patch)
treea2c7332db144da695e9cf6ea8691a2f3e4f84f33 /src/math/bigint/mp_amd64
parentd81a2a302f5405d18875d8e23193bd2fbd182d3b (diff)
Enable x86-64 asm word_add
Diffstat (limited to 'src/math/bigint/mp_amd64')
-rw-r--r--src/math/bigint/mp_amd64/mp_asmi.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/math/bigint/mp_amd64/mp_asmi.h b/src/math/bigint/mp_amd64/mp_asmi.h
index 8bccbaaf4..1a3ac1aaa 100644
--- a/src/math/bigint/mp_amd64/mp_asmi.h
+++ b/src/math/bigint/mp_amd64/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("adcq %[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
}
/*