]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(AES_LAST_ROUND): New macro.
authorNiels Möller <nisse@lysator.liu.se>
Tue, 14 May 2002 17:11:06 +0000 (19:11 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 14 May 2002 17:11:06 +0000 (19:11 +0200)
Rev: src/nettle/x86/machine.m4:1.2

x86/machine.m4

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..d145b5b3726c191ce556da86f33f0d5b9f1e524a 100644 (file)
@@ -0,0 +1,15 @@
+dnl AES_LAST_ROUND(a, b, c, d)
+dnl Leaves result in %edi
+dnl Note that we have to quote $ in constants.
+define(<AES_LAST_ROUND>, <
+       movl    %e<>$1<>x,%edi
+       andl    <$>0x000000ff,%edi
+       movl    %e<>$2<>x,%ebp
+       andl    <$>0x0000ff00,%ebp
+       orl     %ebp,%edi
+       movl    %e<>$3<>x,%ebp
+       andl    <$>0x00ff0000,%ebp
+       orl     %ebp,%edi
+       movl    %e<>$4<>x,%ebp
+       andl    <$>0xff000000,%ebp
+       orl     %ebp,%edi>)dnl