Skip to content
Snippets Groups Projects
Commit 15f754b5 authored by Niels Möller's avatar Niels Möller
Browse files

* 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
parent ee88c435
No related branches found
No related tags found
No related merge requests found
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.
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment