Skip to content
Snippets Groups Projects
Commit c209a74e authored by Niels Möller's avatar Niels Möller
Browse files

Cleanup.

Rev: src/nettle/sparc/aes.asm:1.92
parent ca23f223
Branches
Tags
No related merge requests found
...@@ -286,16 +286,12 @@ _aes_crypt: ...@@ -286,16 +286,12 @@ _aes_crypt:
bne .Lround_loop bne .Lround_loop
add key, 16, key add key, 16, key
! final round ! Final round
! Use round as the loop variable, as it's already zero
undefine(<i>)
define(i, round)
! Comments mark which j in T->sbox[Bj(wtxt[IDXj(i)])] ! Comments mark which j in T->sbox[Bj(wtxt[IDXj(i)])]
! the instruction is part of. ! the instruction is part of.
C Unrolled final loop begins C Unrolled final loop begins
! NOTE: First instruction duplicated in delay slot
C i = 0 C i = 0
ld [IDX1+0], t1 ! 1 ld [IDX1+0], t1 ! 1
...@@ -325,7 +321,6 @@ define(i, round) ...@@ -325,7 +321,6 @@ define(i, round)
or t0, t3, t0 ! 0, 1, 2, 3 or t0, t3, t0 ! 0, 1, 2, 3
xor t0, t2, t0 xor t0, t2, t0
C add i, 4, i
srl t0, 24, t3 srl t0, 24, t3
srl t0, 16, t2 srl t0, 16, t2
...@@ -366,7 +361,6 @@ define(i, round) ...@@ -366,7 +361,6 @@ define(i, round)
or t0, t3, t0 ! 0, 1, 2, 3 or t0, t3, t0 ! 0, 1, 2, 3
xor t0, t2, t0 xor t0, t2, t0
C add i, 4, i
srl t0, 24, t3 srl t0, 24, t3
srl t0, 16, t2 srl t0, 16, t2
...@@ -407,7 +401,6 @@ define(i, round) ...@@ -407,7 +401,6 @@ define(i, round)
or t0, t3, t0 ! 0, 1, 2, 3 or t0, t3, t0 ! 0, 1, 2, 3
xor t0, t2, t0 xor t0, t2, t0
C add i, 4, i
srl t0, 24, t3 srl t0, 24, t3
srl t0, 16, t2 srl t0, 16, t2
...@@ -448,7 +441,6 @@ define(i, round) ...@@ -448,7 +441,6 @@ define(i, round)
or t0, t3, t0 ! 0, 1, 2, 3 or t0, t3, t0 ! 0, 1, 2, 3
xor t0, t2, t0 xor t0, t2, t0
C add i, 4, i
srl t0, 24, t3 srl t0, 24, t3
srl t0, 16, t2 srl t0, 16, t2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment