diff options
author | lloyd <[email protected]> | 2006-08-13 10:24:00 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-13 10:24:00 +0000 |
commit | f72c813aace629bd1705950b6e181a718f35b8cb (patch) | |
tree | 86a2a43914639a56e20688be51a0925c342b079a /modules | |
parent | 0eba037c3068bbe648a0475a03e92e8c65209091 (diff) |
Clean up the macros a little bit
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sha_x86/asm_macr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/sha_x86/asm_macr.h b/modules/sha_x86/asm_macr.h index 1eab6d73d..9dfe64b43 100644 --- a/modules/sha_x86/asm_macr.h +++ b/modules/sha_x86/asm_macr.h @@ -41,11 +41,13 @@ func_name: #define PUSH(REG) pushl REG #define POP(REG) popl REG -#define ASSIGN(TO, FROM) movl FROM, TO + #define ARRAY(REG, NUM) 4*NUM(REG) #define ARRAY_INDIRECT(BASE, OFFSET, NUM) 4*NUM(BASE,OFFSET,4) #define ARG(NUM) 4*PUSHED + ARRAY(ESP, NUM) +#define ASSIGN(TO, FROM) movl FROM, TO + #define ADD(TO, FROM) addl FROM, TO #define ADD_IMM(TO, NUM) addl IMM(NUM), TO #define ADD2_IMM(TO, FROM, NUM) leal NUM(FROM), TO @@ -60,5 +62,4 @@ func_name: #define ROTR_IMM(REG, NUM) rorl IMM(NUM), REG #define BSWAP(REG) bswapl REG - #endif |