]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* sparc/arcfour-crypt.asm: Bugfix, use lduh and stuh.
authorNiels Möller <nisse@lysator.liu.se>
Mon, 17 Oct 2005 19:23:17 +0000 (21:23 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 17 Oct 2005 19:23:17 +0000 (21:23 +0200)
Rev: src/nettle/sparc/arcfour-crypt.asm:1.2

sparc/arcfour-crypt.asm

index 21e09a585763cd17e9673ec1d944a38abbcbdad4..9252a1a9b5511a9c21fb4af29c40e95e899c58d9 100644 (file)
@@ -52,7 +52,7 @@ PROLOGUE(nettle_arcfour_crypt)
        be      .Lend
        
        C       Load both I and J
-       lduw    [CTX + ARCFOUR_I], I
+       lduh    [CTX + ARCFOUR_I], I
        and     I, 0xff, J
        srl     I, 8, I
 
@@ -79,7 +79,7 @@ PROLOGUE(nettle_arcfour_crypt)
        C       Save back I and J       
        sll     I, 8, I
        or      I, J, I
-       stuw    I, [CTX + ARCFOUR_I]
+       stuh    I, [CTX + ARCFOUR_I]
 
 .Lend:
        ret
@@ -90,6 +90,8 @@ EPILOGUE(nettle_arcfour_crypt)
 C Some stats from adriana.lysator.liu.se (SS1000$, 85 MHz), for AES 128
 
 C 1:   nettle-1.13 C-code
-
+C 2:   First working version of the assembler code
+       
 C      MB/s    cycles/byte     Code size (bytes)
-C 1:   6.6     12.4                    132
+C 1:   6.6     12.4            132
+C 2:   5.6     14.5            116