aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sha_x86/asm_macr.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-08-13 08:47:33 +0000
committerlloyd <[email protected]>2006-08-13 08:47:33 +0000
commit91da72f10e640b7324cf9868ebc7e4ba83d820ee (patch)
tree99eeb892d3d8a0979dd372d1c5684e1cacb2b411 /modules/sha_x86/asm_macr.h
parent142d02d458a5660e2d60af715b997faaf8ed4fb6 (diff)
Introduce some new macros to improve the readability of the code
Diffstat (limited to 'modules/sha_x86/asm_macr.h')
-rw-r--r--modules/sha_x86/asm_macr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/sha_x86/asm_macr.h b/modules/sha_x86/asm_macr.h
index 9f91eecfb..162e7e7a7 100644
--- a/modules/sha_x86/asm_macr.h
+++ b/modules/sha_x86/asm_macr.h
@@ -39,11 +39,13 @@ func_name:
#define PUSH(REG) pushl REG
#define POP(REG) popl REG
#define MOV(FROM, TO) movl FROM, TO
-
+#define ASSIGN(TO, FROM) movl FROM, TO
#define ADD(FROM, TO) addl FROM, TO
#define ADD2(FROM, NUM, TO) leal NUM(FROM), TO
+#define ADD_IMM(REG, NUM) addl IMM(NUM), REG
+
#define XOR(FROM, TO) xorl FROM, TO
#define AND(FROM, TO) andl FROM, TO
#define OR(FROM, TO) orl FROM, TO