diff options
author | lloyd <[email protected]> | 2006-08-15 13:43:05 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-15 13:43:05 +0000 |
commit | 9f17c24a0b9e22e092a4ed1ada4d3d758ccc512a (patch) | |
tree | 76a50b1a932f68028ed34ce3ec9a70690e6d3557 /modules/alg_ia32 | |
parent | 04dba5d24af0ec367308e337b7ab8d0f464413a7 (diff) |
Change the Serpent linear transforms to use the move-and-shift-3 macro
Diffstat (limited to 'modules/alg_ia32')
-rw-r--r-- | modules/alg_ia32/serp_asm.S | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/alg_ia32/serp_asm.S b/modules/alg_ia32/serp_asm.S index dded07fd0..ddaa99606 100644 --- a/modules/alg_ia32/serp_asm.S +++ b/modules/alg_ia32/serp_asm.S @@ -395,8 +395,7 @@ START_LISTING(serp_asm.S) #define TRANSFORM(A, B, C, D, T) \ ROTL_IMM(A, 13) ; \ ROTL_IMM(C, 3) ; \ - ASSIGN(T, A) ; \ - SHL_IMM(T, 3) ; \ + SHL2_3(T, A) ; \ XOR(B, A) ; \ XOR(D, C) ; \ XOR(B, C) ; \ @@ -423,8 +422,7 @@ START_LISTING(serp_asm.S) XOR(C, T) ; \ ROTR_IMM(D, 7) ; \ ROTR_IMM(B, 1) ; \ - ASSIGN(T, A) ; \ - SHL_IMM(T, 3) ; \ + SHL2_3(T, A) ; \ XOR(B, C) ; \ XOR(D, C) ; \ XOR(B, A) ; \ |