From 9e67e3157312be0ddadc2395a44b2e1e8c868b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Tue, 14 May 2002 19:11:06 +0200 Subject: [PATCH] (AES_LAST_ROUND): New macro. Rev: src/nettle/x86/machine.m4:1.2 --- x86/machine.m4 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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(<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 -- GitLab