summaryrefslogtreecommitdiff
path: root/x86
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2010-07-25 20:23:32 +0200
committerNiels Möller <nisse@lysator.liu.se>2010-07-25 20:23:32 +0200
commit15f754b5034fd01b22c5492c4d2bc80727a446a1 (patch)
treef78280429419064cf0dc5fa98a3662e13634e12f /x86
parentee88c435257458a4a25d92cfbef7ce497e5f573d (diff)
downloadnettle-15f754b5034fd01b22c5492c4d2bc80727a446a1.tar.gz
* x86/machine.m4 (LREG, HREG): Moved macros here, from...
* x86/aes.m4: ...here. Rev: nettle/x86/aes.m4:1.7 Rev: nettle/x86/machine.m4:1.2
Diffstat (limited to 'x86')
-rw-r--r--x86/aes.m413
-rw-r--r--x86/machine.m413
2 files changed, 13 insertions, 13 deletions
diff --git a/x86/aes.m4 b/x86/aes.m4
index cf89d30d..3507e856 100644
--- a/x86/aes.m4
+++ b/x86/aes.m4
@@ -1,16 +1,3 @@
-dnl LREG(reg) gives the 8-bit register corresponding to the given 32-bit register.
-define(<LREG>,<ifelse(
- $1, %eax, %al,
- $1, %ebx, %bl,
- $1, %ecx, %cl,
- $1, %edx, %dl)>)dnl
-
-define(<HREG>,<ifelse(
- $1, %eax, %ah,
- $1, %ebx, %bh,
- $1, %ecx, %ch,
- $1, %edx, %dh)>)dnl
-
dnl AES_LOAD(a, b, c, d, src, key)
dnl Loads the next block of data from src, and add the subkey pointed
dnl to by key.
diff --git a/x86/machine.m4 b/x86/machine.m4
index 887bf3b3..38bee366 100644
--- a/x86/machine.m4
+++ b/x86/machine.m4
@@ -1,3 +1,16 @@
C OFFSET(i)
C Expands to 4*i, or to the empty string if i is zero
define(<OFFSET>, <ifelse($1,0,,eval(4*$1))>)
+
+dnl LREG(reg) gives the 8-bit register corresponding to the given 32-bit register.
+define(<LREG>,<ifelse(
+ $1, %eax, %al,
+ $1, %ebx, %bl,
+ $1, %ecx, %cl,
+ $1, %edx, %dl)>)dnl
+
+define(<HREG>,<ifelse(
+ $1, %eax, %ah,
+ $1, %ebx, %bh,
+ $1, %ecx, %ch,
+ $1, %edx, %dh)>)dnl