diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-09-06 14:53:03 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-09-06 14:53:03 +0200 |
commit | 8afc069c742f80d3e383ba3d0e38697aeeeb147b (patch) | |
tree | 4c010eac56a1d6958e7c86d97579be6338552d51 /libtommath/bn_mp_div_3.c | |
parent | 3d758323280763fe59b1f61d4f86aa2a29fe3775 (diff) | |
parent | c5fb18ff697aefb156dfebe87ded77a9e1371c45 (diff) | |
download | kernel-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.c | 2 |
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; |