diff options
author | lloyd <[email protected]> | 2006-08-13 08:50:14 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-13 08:50:14 +0000 |
commit | b675d0862db407a2fe8ca44ba0b80f8e93ea8091 (patch) | |
tree | ee62602ad544635eabc69c913fa2093858f9b320 | |
parent | 91da72f10e640b7324cf9868ebc7e4ba83d820ee (diff) |
Use ADD_IMM everywhere it is applicable
Use the ASSIGN() macro in a couple of places that I hadn't touched
-rw-r--r-- | modules/sha_x86/sha1core.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/sha_x86/sha1core.S b/modules/sha_x86/sha1core.S index cbc8fdb1a..9db3edba2 100644 --- a/modules/sha_x86/sha1core.S +++ b/modules/sha_x86/sha1core.S @@ -28,23 +28,23 @@ START_LOOP(.LOAD_INPUT) ASSIGN(ECX, ARRAY(EBP, 2)) ASSIGN(EDX, ARRAY(EBP, 3)) - ADD(IMM(16), EBP) + ADD_IMM(EBP, 16) BSWAP(EAX) BSWAP(EBX) BSWAP(ECX) BSWAP(EDX) - movl EAX, -16(EDI,ESI,4) - movl EBX, -12(EDI,ESI,4) - movl ECX, -8(EDI,ESI,4) - movl EDX, -4(EDI,ESI,4) + ASSIGN(-16(EDI,ESI,4), EAX) + ASSIGN(-12(EDI,ESI,4), EBX) + ASSIGN( -8(EDI,ESI,4), ECX) + ASSIGN( -4(EDI,ESI,4), EDX) LOOP_UNTIL(ESI, IMM(16), .LOAD_INPUT) ADD2(EDI, 64, EBP) START_LOOP(.EXPANSION) - ADD(IMM(4), ESI) + ADD_IMM(ESI, 4) ZEROIZE(EAX) @@ -78,7 +78,7 @@ START_LOOP(.EXPANSION) ASSIGN(ARRAY(EBP, 2), EBX) ASSIGN(ARRAY(EBP, 3), EAX) - ADD(IMM(16), EBP) + ADD_IMM(EBP, 16) LOOP_UNTIL(ESI, IMM(80), .EXPANSION) ASSIGN(EBP, ARG(1)) |