From: Niels Möller Date: Tue, 14 May 2002 17:11:06 +0000 (+0200) Subject: (AES_LAST_ROUND): New macro. X-Git-Tag: nettle_1.6_release_20021003~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e67e3157312be0ddadc2395a44b2e1e8c868b31;p=thirdparty%2Fnettle.git (AES_LAST_ROUND): New macro. Rev: src/nettle/x86/machine.m4:1.2 --- diff --git a/x86/machine.m4 b/x86/machine.m4 index e69de29b..d145b5b3 100644 --- a/x86/machine.m4 +++ b/x86/machine.m4 @@ -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(, < + 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