diff options
author | Andy Polyakov <appro@openssl.org> | 2011-07-18 11:34:07 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2011-07-18 11:34:07 +0000 |
commit | 9df286b13a1f270364f10247ecf35d0050bf2d02 (patch) | |
tree | a4b9f2aee542c3ae3b6a442aba67a43e3f3f22e5 /crypto/sha/asm | |
parent | 81c2920849821d26759bde339e462fd757f8b6d1 (diff) |
sha512-sparcv9.pl: minor optimization of sha256.
Diffstat (limited to 'crypto/sha/asm')
-rw-r--r-- | crypto/sha/asm/sha512-sparcv9.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/sha/asm/sha512-sparcv9.pl b/crypto/sha/asm/sha512-sparcv9.pl index ec5d78135e..585740789e 100644 --- a/crypto/sha/asm/sha512-sparcv9.pl +++ b/crypto/sha/asm/sha512-sparcv9.pl @@ -305,9 +305,9 @@ $code.=<<___; srlx @X[(($i+9)/2)%8],32,$tmp1 ! X[i+9] xor $tmp0,$tmp2,$tmp2 ! sigma1(X[i+14]) srl @X[($i/2)%8],0,$tmp0 + add $tmp2,$tmp1,$tmp1 add $xi,$T1,$T1 ! +=X[i] xor $tmp0,@X[($i/2)%8],@X[($i/2)%8] - add $tmp2,$T1,$T1 add $tmp1,$T1,$T1 srl $T1,0,$T1 @@ -318,9 +318,9 @@ ___ $code.=<<___; srlx @X[($i/2)%8],32,$tmp1 ! X[i] xor $tmp0,$tmp2,$tmp2 ! sigma1(X[i+14]) - srl @X[($i/2)%8],0,@X[($i/2)%8] add $xi,$T1,$T1 ! +=X[i+9] - add $tmp2,$T1,$T1 + add $tmp2,$tmp1,$tmp1 + srl @X[($i/2)%8],0,@X[($i/2)%8] add $tmp1,$T1,$T1 sllx $T1,32,$tmp0 |