From: Niels Möller Date: Mon, 18 Oct 2004 19:36:18 +0000 (+0200) Subject: (nettle_arcfour_crypt): Replace incb -> X-Git-Tag: nettle_1.11_release_20041026~39 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=504dff42695fe60d43453af4de6deec6f7e0949c;p=thirdparty%2Fnettle.git (nettle_arcfour_crypt): Replace incb -> incl + andl, to improve speed on PPro and PII. Suggested by Fredrik Olsson. Rev: src/nettle/x86/arcfour-crypt.asm:1.7 --- diff --git a/x86/arcfour-crypt.asm b/x86/arcfour-crypt.asm index 7b2b2e67..6b99cc57 100644 --- a/x86/arcfour-crypt.asm +++ b/x86/arcfour-crypt.asm @@ -50,7 +50,8 @@ nettle_arcfour_crypt: movzbl 256(%ebp), %eax C i movzbl 257(%ebp), %ebx C j .Lloop: - incb %al + incl %eax + andl $0xff, %eax movzbl (%ebp, %eax), %ecx C si. Clears high bytes addb %cl, %bl movb (%ebp, %ebx), %ch C sj