From 504dff42695fe60d43453af4de6deec6f7e0949c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Mon, 18 Oct 2004 21:36:18 +0200 Subject: [PATCH] (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 --- x86/arcfour-crypt.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- GitLab