From 4e764ed6fae11a08e95fe7ce6cd163eb670c3abf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niels=20M=C3=B6ller?= Date: Fri, 6 Mar 2009 19:13:07 +0100 Subject: [PATCH] * x86_64/aes.m4 (MOVE_HREG): Deleted, no longer needed. (AES_STORE): Reduced offsets. (AES_ROUND): Use HREG directly, not MOVE_HREG. Rev: nettle/x86_64/aes.m4:1.7 --- x86_64/aes.m4 | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/x86_64/aes.m4 b/x86_64/aes.m4 index 9f251c50..d0f0be57 100644 --- a/x86_64/aes.m4 +++ b/x86_64/aes.m4 @@ -24,21 +24,6 @@ define(,) -dnl MOVE_HREG(src, dst) -define(, , - $1, %ebx, , - $1, %ecx, , - $1, %edx, , - 8, $2 - and <$>0xff, $2 - >)>) - define(,, < - xorl 16($5),$1 - xorl 20($5),$2 - xorl 24($5),$3 - xorl 28($5),$4 + xorl ($5),$1 + xorl 4($5),$2 + xorl 8($5),$3 + xorl 12($5),$4 movl $1,($6) movl $2,4($6) @@ -94,7 +79,7 @@ dnl Computes one word of the AES round. Leaves result in $6. define(, < movzb LREG($2), $7 movl AES_TABLE0 ($1, $7, 4),$6 - MOVE_HREG($3, XREG($7)) + movzb HREG($3), XREG($7) xorl AES_TABLE1 ($1, $7, 4),$6 movl $4,XREG($7) shr <$>16,$7 @@ -105,7 +90,7 @@ define(, < xorl AES_TABLE3 ($1, $7, 4),$6>)dnl dnl AES_FINAL_ROUND(a, b, c, d, table, out, tmp) -dnl Computes one word of the final round. Leaves result in %edi. +dnl Computes one word of the final round. Leaves result in $6. dnl Note that we have to quote $ in constants. define(, < movzb LREG($1),$7 -- 2.47.3