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:
9e1a112
)
Decimal printout of a BN is wrong on PPC, it's sparse with very few
author
Andy Polyakov
<appro@openssl.org>
Fri, 1 Jul 2005 17:49:47 +0000
(17:49 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Fri, 1 Jul 2005 17:49:47 +0000
(17:49 +0000)
significant digits. As soon it verifies elsewhere it goes to 0.9.8 and
0.9.7.
crypto/bn/asm/ppc.pl
patch
|
blob
|
history
diff --git
a/crypto/bn/asm/ppc.pl
b/crypto/bn/asm/ppc.pl
index 307c7ccb3580dce148dbd79aa67e4cdfdca70a5d..8c567424aee41f92b9ccd5f041330b700d3c98fe 100644
(file)
--- a/
crypto/bn/asm/ppc.pl
+++ b/
crypto/bn/asm/ppc.pl
@@
-1717,7
+1717,7
@@
Lppcasm_div1:
li r9,1 # r9=1
$SHL r10,r9,r8 # r9<<=r8
$UCMP 0,r3,r10 #
- bc BO_IF
,CR0_GT,Lppcasm_div2
#or if (h > (1<<r8))
+ bc BO_IF
_NOT,CR0_GT,Lppcasm_div2
#or if (h > (1<<r8))
$UDIV r3,r3,r0 #if not assert(0) divide by 0!
#that's how we signal overflow
bclr BO_ALWAYS,CR0_LT #return. NEVER REACHED.