summaryrefslogtreecommitdiffstats
path: root/crypto/pariscid.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-01-24 16:04:28 +0100
committerAndy Polyakov <appro@openssl.org>2010-01-24 16:04:28 +0100
commit82a66ce31374107282edad6d099194707af2d730 (patch)
tree0b185c52687ebd367a6d0ccd63592989f1a5f2c5 /crypto/pariscid.pl
parentOPENSSL_cleanse to accept zero length parameter [matching C implementation]. (diff)
downloadopenssl-82a66ce31374107282edad6d099194707af2d730.tar.xz
openssl-82a66ce31374107282edad6d099194707af2d730.zip
pariscid.pl: OPENSSL_cleanse to compile on PA-RISC 2.0W and to accept zero
length parameter.
Diffstat (limited to 'crypto/pariscid.pl')
-rw-r--r--crypto/pariscid.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/pariscid.pl b/crypto/pariscid.pl
index bf470ac510..1ed5381957 100644
--- a/crypto/pariscid.pl
+++ b/crypto/pariscid.pl
@@ -97,7 +97,9 @@ OPENSSL_cleanse
.PROC
.CALLINFO NO_CALLS
.ENTRY
- cmpib,*>> 15,$len,Little
+ cmpib,*= 0,$len,Ldone
+ nop
+ cmpib,*>>= 15,$len,Little
ldi $SIZE_T-1,%r1
Lalign
@@ -112,14 +114,14 @@ Laligned
andcm $len,%r1,%r28
Loop
$ST %r0,0($inp)
- addib,*vnz -$SIZE_T,%r28,Loop
+ addib,*<> -$SIZE_T,%r28,Loop
ldo $SIZE_T($inp),$inp
and,*<> $len,%r1,$len
b,n Ldone
Little
stb %r0,0($inp)
- addib,*vnz -1,$len,Little
+ addib,*<> -1,$len,Little
ldo 1($inp),$inp
Ldone
bv ($rp)