aboutsummaryrefslogtreecommitdiffstats
path: root/modules/alg_amd64/asm_macr.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-24 16:00:59 +0000
committerlloyd <[email protected]>2006-09-24 16:00:59 +0000
commit5d2328198dd9264990dcc51ce0617f1a1142c4c8 (patch)
tree1bcd1e26394a01378c7566ff27759514ed079831 /modules/alg_amd64/asm_macr.h
parent877f1a962e2b4b57dbef914eda3ef9b40a771b55 (diff)
Better instruction scheduling, some higher level macros for readability
Diffstat (limited to 'modules/alg_amd64/asm_macr.h')
-rw-r--r--modules/alg_amd64/asm_macr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/alg_amd64/asm_macr.h b/modules/alg_amd64/asm_macr.h
index 689bfa3cb..93b675858 100644
--- a/modules/alg_amd64/asm_macr.h
+++ b/modules/alg_amd64/asm_macr.h
@@ -67,6 +67,7 @@ func_name:
#define IMM(VAL) $VAL
#define ADD(TO, FROM) addq FROM, TO
+#define ADD_LAST_CARRY(REG) adcq IMM(0), REG
#define ADD_IMM(TO, NUM) ADD(TO, IMM(NUM))
#define ADD_W_CARRY(TO1, TO2, FROM) addq FROM, TO1; adcq IMM(0), TO2;
#define SUB_IMM(TO, NUM) sub IMM(NUM), TO
@@ -78,4 +79,6 @@ func_name:
#define NOT(REG) notq REG
#define ZEROIZE(REG) XOR(REG, REG)
+#define RETURN_VALUE_IS(V) ASSIGN(%rax, V)
+
#endif