From: Niels Möller Date: Tue, 26 Oct 2004 19:10:33 +0000 (+0200) Subject: Use movzbl when extending %cl to 32 bits. X-Git-Tag: nettle_1.11_release_20041026~2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=861def130c0b12ffeab48a196c67ec1b64be8f61;p=thirdparty%2Fnettle.git Use movzbl when extending %cl to 32 bits. Rev: src/nettle/x86/arcfour-crypt.asm:1.11 --- diff --git a/x86/arcfour-crypt.asm b/x86/arcfour-crypt.asm index 74dd7763..ee1e23e0 100644 --- a/x86/arcfour-crypt.asm +++ b/x86/arcfour-crypt.asm @@ -72,7 +72,7 @@ C andl $0xff, %ebx movb %ch, (%ebp, %eax) C S[i] = sj movb %cl, (%ebp, %ebx) C S[j] = si addb %ch, %cl - xorb %ch, %ch C Clear, so it can be used + movzbl %cl, %ecx C Clear, so it can be used C for indexing. movb (%ebp, %ecx), %cl xorb (%esi), %cl