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

* x86/arcfour-crypt.asm: Reduced inner loop by one instruction, by

precomputing the offset between src and dst.

Rev: src/nettle/x86/arcfour-crypt.asm:1.9
parent 0b90fe56
......@@ -59,6 +59,7 @@ C Register usage:
movzbl 256(%ebp), %eax C i
movzbl 257(%ebp), %ebx C j
subl %esi, %edi
C incb %al
incl %eax
......@@ -75,9 +76,8 @@ C addb %cl, %bl
C for indexing.
movb (%ebp, %ecx), %cl
xorb (%esi), %cl
movb %cl, (%esi,%edi)
incl %esi
movb %cl, (%edi)
incl %edi
cmpl %esi, %edx
jne .Lloop
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