diff options
author | lloyd <[email protected]> | 2006-08-13 07:00:44 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-13 07:00:44 +0000 |
commit | faf83849264e07d7606157e350034fddf64a48fe (patch) | |
tree | 2acc67953f0361b2b5b24cc9fd95aa2ca53d2881 /modules/sha_x86/asm_macr.h | |
parent | 386e319a6ce652cf09798c0b6c010feca2c922f4 (diff) |
Add a loop macro, continue converting the assembly to use the wrapper
macros.
Diffstat (limited to 'modules/sha_x86/asm_macr.h')
-rw-r--r-- | modules/sha_x86/asm_macr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/sha_x86/asm_macr.h b/modules/sha_x86/asm_macr.h index 2736c7d9a..095d656bf 100644 --- a/modules/sha_x86/asm_macr.h +++ b/modules/sha_x86/asm_macr.h @@ -20,6 +20,10 @@ .type func_name,@function; \ func_name: +#define LOOP_UNTIL(REG, NUM, LABEL) \ + cmpl NUM, REG; \ + jne LABEL + #define EAX %eax #define EBX %ebx #define ECX %ecx @@ -34,6 +38,10 @@ func_name: #define ADD(FROM, TO) addl FROM, TO +#define ARRAY(REG, NUM) 4*NUM(REG) + +#define BSWAP(REG) bswapl REG + #define IMM(VAL) $VAL #define ZEROIZE(REG) xorl REG, REG |