Commit e3299195 authored by Niels Möller's avatar Niels Möller
Browse files

Added ALIGN for shifting loop. Deleted obsolete ifelse.

Rev: nettle/x86_64/memxor.asm:1.2
parent 072e351a
...@@ -78,7 +78,6 @@ PROLOGUE(memxor3) ...@@ -78,7 +78,6 @@ PROLOGUE(memxor3)
jnz .Lalign_loop jnz .Lalign_loop
.Laligned: .Laligned:
ifelse(x,x,<
C Check for the case that AP and BP have the same alignment, C Check for the case that AP and BP have the same alignment,
C but different from DST. C but different from DST.
mov AP, TMP mov AP, TMP
...@@ -117,6 +116,8 @@ ifelse(x,x,< ...@@ -117,6 +116,8 @@ ifelse(x,x,<
jz .Ldone jz .Ldone
jmp .Lshift_next jmp .Lshift_next
ALIGN(4)
.Lshift_loop: .Lshift_loop:
mov 8(AP, N), S0 mov 8(AP, N), S0
xor 8(BP, N), S0 xor 8(BP, N), S0
...@@ -154,7 +155,6 @@ C jz .Ldone ...@@ -154,7 +155,6 @@ C jz .Ldone
jmp .Lfinal_loop jmp .Lfinal_loop
.Lno_shift_case: .Lno_shift_case:
>)
C Next destination word is -8(DST, N) C Next destination word is -8(DST, N)
C Setup for unrolling C Setup for unrolling
test $8, N test $8, N
......
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