]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(_aes_crypt): Moved reading of ctx->nrounds out of the loop.
authorNiels Möller <nisse@lysator.liu.se>
Fri, 15 Feb 2002 21:59:19 +0000 (22:59 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 15 Feb 2002 21:59:19 +0000 (22:59 +0100)
Rev: src/nettle/sparc/aes.asm:1.32

sparc/aes.asm

index 0105bad4e84c8db4687282d060fd629562d3ee5f..7853e0e98583080c24a29a12f958fdbdf7696a42 100644 (file)
@@ -41,6 +41,9 @@ _aes_crypt:
        add     %fp, -40, tmp
        ! Compute xor, so that we can swap efficiently.
        xor     wtxt, tmp, diff
+       
+       ld      [ctx + AES_NROUNDS], nround
+
 .Lblock_loop:
        ! Read src, and add initial subkey
        mov     -4, i
@@ -92,7 +95,6 @@ _aes_crypt:
        ! bleu  .Lsource_loop
        ! add   %o3, 4, %o3
 
-       ld      [ctx + AES_NROUNDS], nround
        mov     1, round
 
        ! 4*i:  i