projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb55b9f
)
s390x-mont.pl: optimize prologue.
author
Andy Polyakov
<appro@openssl.org>
Tue, 10 Feb 2009 08:46:48 +0000
(08:46 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Tue, 10 Feb 2009 08:46:48 +0000
(08:46 +0000)
crypto/bn/asm/s390x-mont.pl
patch
|
blob
|
history
diff --git
a/crypto/bn/asm/s390x-mont.pl
b/crypto/bn/asm/s390x-mont.pl
index b575eb70d1c3aa325cb536926c837704fd0ab2c0..d23251033b003782b0ada3aefb35d3b0c32b0cf2 100644
(file)
--- a/
crypto/bn/asm/s390x-mont.pl
+++ b/
crypto/bn/asm/s390x-mont.pl
@@
-64,7
+64,7
@@
bn_mul_mont:
sla $num,3 # $num to enumerate bytes
la $bp,0($num,$bp)
- st
mg %r2,%r15
,16($sp)
+ st
g %r2
,16($sp)
cghi $num,16 #
lghi %r2,0 #
@@
-72,6
+72,8
@@
bn_mul_mont:
cghi $num,128 #
bhr %r14 # if($num>128) return 0;
+ stmg %r3,%r15,24($sp)
+
lghi $rp,-160-8 # leave room for carry bit
lcgr $j,$num # -$num
lgr %r0,$sp