Change 64-bit shift to 32-bit in AES AMD64 assembly
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 7 Nov 2013 10:24:04 +0000 (12:24 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 7 Nov 2013 10:24:04 +0000 (12:24 +0200)
* cipher/rijndael-amd64.S (do16bit_shr): Change 'shrq' to 'shrl'.
--

64-bit shift is not needed here as registers are used for 32-bit values.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/rijndael-amd64.S

index d360ea8..3b96889 100644 (file)
 #define do16bit_shr(shf, op, source, tablemul, table1, dest1, table2, dest2, t0, t1) \
        movzbl source ## bl,                    t0 ## d; \
        movzbl source ## bh,                    t1 ## d; \
-       shrq $(shf),                            source; \
+       shrl $(shf),                            source ## d; \
        op ## l table1(RTAB,t0,tablemul),       dest1 ## d; \
        op ## l table2(RTAB,t1,tablemul),       dest2 ## d;