From 9df5c1ef72764bce170a2f543df43de86cab576f Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 12 Aug 2006 20:23:50 +0000 Subject: Pull a variable directly out of a live register, rather than going out to memory for it. --- modules/sha_x86/sha1core.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/sha_x86/sha1core.S b/modules/sha_x86/sha1core.S index 31bce0139..db4e536b3 100644 --- a/modules/sha_x86/sha1core.S +++ b/modules/sha_x86/sha1core.S @@ -31,9 +31,9 @@ sha160_core: .p2align 4,,7 // here esi == 16 .EXPANSION_LOOP: - xorl %eax, %eax - movl -4(%ebp), %ebx - movl -8(%ebp), %ecx + xorl %eax, %eax + movl -4(%ebp), %ebx + movl -8(%ebp), %ecx movl -12(%ebp), %edx xorl -20(%ebp), %eax @@ -60,7 +60,7 @@ sha160_core: roll $1, %ebx movl %ebx, 8(%ebp) - xorl (%ebp), %eax + xorl %edx, %eax roll $1, %eax movl %eax, 12(%ebp) -- cgit v1.2.3