summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_div.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-09-06 14:53:03 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-09-06 14:53:03 +0200
commit8afc069c742f80d3e383ba3d0e38697aeeeb147b (patch)
tree4c010eac56a1d6958e7c86d97579be6338552d51 /libtommath/bn_mp_div.c
parent3d758323280763fe59b1f61d4f86aa2a29fe3775 (diff)
parentc5fb18ff697aefb156dfebe87ded77a9e1371c45 (diff)
downloadkernel-crypto-ncr-standalone-master.tar.gz
kernel-crypto-ncr-standalone-master.tar.xz
kernel-crypto-ncr-standalone-master.zip
Merge remote branch 'standalone/master' into standalone-masterncr-standalone-master
Diffstat (limited to 'libtommath/bn_mp_div.c')
-rw-r--r--libtommath/bn_mp_div.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/bn_mp_div.c b/libtommath/bn_mp_div.c
index aee9c94324d..723c8b503dd 100644
--- a/libtommath/bn_mp_div.c
+++ b/libtommath/bn_mp_div.c
@@ -195,7 +195,7 @@ int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d)
mp_word tmp;
tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT);
tmp |= ((mp_word) x.dp[i - 1]);
- tmp /= ((mp_word) y.dp[t]);
+ tmp = word_div_int(tmp, (int)y.dp[t]);
if (tmp > (mp_word) MP_MASK)
tmp = MP_MASK;
q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK));