summaryrefslogtreecommitdiffstats
path: root/crypto/ec/asm/ecp_nistz256-sparcv9.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2018-07-18 15:14:44 +0200
committerAndy Polyakov <appro@openssl.org>2018-07-22 15:21:44 +0200
commit87a75b3e5c04a1696208c279f32d1114b862cfed (patch)
tree1db8208d7c244c4bc582061644e2b55518dcfb2b /crypto/ec/asm/ecp_nistz256-sparcv9.pl
parentf40e0a342cbca8bb71d0fe3f19e1b4bfd853aff1 (diff)
ec/asm/ecp_nistz256-{!x86_64}.pl: fix scatter_w7 function.
The ecp_nistz256_scatter_w7 function is called when application attempts to use custom generator, i.e. rarely. Even though non-x86_64 versions were wrong, it didn't affect point operations, they were just not as fast as expected. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6738)
Diffstat (limited to 'crypto/ec/asm/ecp_nistz256-sparcv9.pl')
-rwxr-xr-xcrypto/ec/asm/ecp_nistz256-sparcv9.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/ec/asm/ecp_nistz256-sparcv9.pl b/crypto/ec/asm/ecp_nistz256-sparcv9.pl
index 9af1fae853..59df0f73b6 100755
--- a/crypto/ec/asm/ecp_nistz256-sparcv9.pl
+++ b/crypto/ec/asm/ecp_nistz256-sparcv9.pl
@@ -1531,13 +1531,13 @@ ecp_nistz256_scatter_w7:
ld [$inp],%l0
add $inp,4,$inp
subcc $index,1,$index
- stb %l0,[$out+64*0-1]
+ stb %l0,[$out+64*0]
srl %l0,8,%l1
- stb %l1,[$out+64*1-1]
+ stb %l1,[$out+64*1]
srl %l0,16,%l2
- stb %l2,[$out+64*2-1]
+ stb %l2,[$out+64*2]
srl %l0,24,%l3
- stb %l3,[$out+64*3-1]
+ stb %l3,[$out+64*3]
bne .Loop_scatter_w7
add $out,64*4,$out