diff options
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 |