From: Niels Möller Date: Wed, 15 May 2002 22:45:59 +0000 (+0200) Subject: (AES_FINAL_ROUND): Eliminated ands. X-Git-Tag: nettle_1.6_release_20021003~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aee5c159cc1181db29dd333c485417738b16dbd;p=thirdparty%2Fnettle.git (AES_FINAL_ROUND): Eliminated ands. Rev: src/nettle/sparc/aes.asm:1.106 --- diff --git a/sparc/aes.asm b/sparc/aes.asm index c1ae5fbc..ead8da4e 100644 --- a/sparc/aes.asm +++ b/sparc/aes.asm @@ -110,13 +110,13 @@ define(, < ld [IDX1+$1], t1 ! 1 ldub [wtxt+t1], t1 ! 1 - ld [wtxt+$1], t0 ! 0 + ldub [wtxt+$1+3], t0 ! 0 ! IDX2(j) = j XOR 2 - lduh [wtxt+eval($1 ^ 8)], t2 ! 2 - and t0, 255, t0 ! 0 + ldub [wtxt+eval($1 ^ 8)+1], t2 ! 2 + C and t0, 255, t0 ! 0 ld [IDX3 + $1], t3 ! 3 - and t2, 255, t2 ! 2 + C and t2, 255, t2 ! 2 ldub [T+t1], t1 ! 1 ldub [T+t0], t0 ! 0 sll t1, 8, t1 ! 1