]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(nettle_arcfour_crypt): Replace incb ->
authorNiels Möller <nisse@lysator.liu.se>
Mon, 18 Oct 2004 19:36:18 +0000 (21:36 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 18 Oct 2004 19:36:18 +0000 (21:36 +0200)
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

index 7b2b2e67afe7dfe8f70a847c015c1d338d1e4354..6b99cc579560b946ccf1b9aac899979490164cf1 100644 (file)
@@ -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