Commit 8184be0f authored by Niels Möller's avatar Niels Möller

x86_64: New m4 macro WREG.

parent a6b67c34
2012-04-17 Niels Möller <nisse@lysator.liu.se>
* x86_64/machine.m4 (WREG): New macro.
* salsa20.c (salsa20_hash): Deleted function, inlined into
salsa20_crypt.
(salsa20_set_key, salsa20_set_iv): Moved, to...
......
......@@ -26,6 +26,23 @@ define(<HREG>,<ifelse(
$1, %rcx, %ch,
$1, %rdx, %dh)>)dnl
define(<WREG>,<ifelse(
$1, %rax, %ax,
$1, %rbx, %bx,
$1, %rcx, %cx,
$1, %rdx, %dx,
$1, %rsi, %si,
$1, %rdi, %di,
$1, %rbp, %bp,
$1, %r8, %r8w,
$1, %r9, %r9w,
$1, %r10, %r10w,
$1, %r11, %r11w,
$1, %r12, %r12w,
$1, %r13, %r13w,
$1, %r14, %r14w,
$1, %r15, %r15w)>)dnl
define(<XREG>,<ifelse(
$1, %rax, %eax,
$1, %rbx, %ebx,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment