summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_div_3.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_3.c
parent3d758323280763fe59b1f61d4f86aa2a29fe3775 (diff)
parentc5fb18ff697aefb156dfebe87ded77a9e1371c45 (diff)
downloadkernel-crypto-8afc069c742f80d3e383ba3d0e38697aeeeb147b.tar.gz
kernel-crypto-8afc069c742f80d3e383ba3d0e38697aeeeb147b.tar.xz
kernel-crypto-8afc069c742f80d3e383ba3d0e38697aeeeb147b.zip
Merge remote branch 'standalone/master' into standalone-masterncr-standalone-master
Diffstat (limited to 'libtommath/bn_mp_div_3.c')
-rw-r--r--libtommath/bn_mp_div_3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/bn_mp_div_3.c b/libtommath/bn_mp_div_3.c
index 3c60269ecea..608e759e366 100644
--- a/libtommath/bn_mp_div_3.c
+++ b/libtommath/bn_mp_div_3.c
@@ -25,7 +25,7 @@ mp_div_3 (mp_int * a, mp_int *c, mp_digit * d)
int res, ix;
/* b = 2**DIGIT_BIT / 3 */
- b = (((mp_word)1) << ((mp_word)DIGIT_BIT)) / ((mp_word)3);
+ b = word_div_int (((mp_word)1) << DIGIT_BIT, 3);
if ((res = mp_init_size(&q, a->used)) != MP_OKAY) {
return res;