summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_div.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>1999-08-24 16:02:16 +0000
committerAndy Polyakov <appro@openssl.org>1999-08-24 16:02:16 +0000
commit0bbd03525ef2c0b0b5e4a53a43d05a0a0f0d49db (patch)
treee93b3ce407c604e1bde78fcbbbcc2439a335a89b /crypto/bn/bn_div.c
parent7b65c3298f8bb8ff0f5b2a1a8260358039ccad83 (diff)
Minor MIPS III/IV tune-up.
Diffstat (limited to 'crypto/bn/bn_div.c')
-rw-r--r--crypto/bn/bn_div.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn_div.c b/crypto/bn/bn_div.c
index 150dd289a5..6dd5d99ec4 100644
--- a/crypto/bn/bn_div.c
+++ b/crypto/bn/bn_div.c
@@ -202,7 +202,7 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
{
BN_ULONG q,l0;
#ifdef BN_DIV3W
- q=bn_div_3_words(wnump,d0,d1);
+ q=bn_div_3_words(wnump,d1,d0);
#else
#if !defined(NO_ASM) && !defined(PEDANTIC)
@@ -291,8 +291,8 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
#endif
}
#endif /* !BN_DIV3W */
- wnum.d--; wnum.top++;
l0=bn_mul_words(tmp->d,sdiv->d,div_n,q);
+ wnum.d--; wnum.top++;
tmp->d[div_n]=l0;
for (j=div_n+1; j>0; j--)
if (tmp->d[j-1]) break;