summaryrefslogtreecommitdiff
path: root/mini-gmp
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2018-12-21 07:21:55 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2018-12-21 07:21:55 +0100
commit0b294c305dd7673531fdb0a570135af83176aa5d (patch)
tree0db5460de59255a8b431255fa1654e3eb533367e /mini-gmp
parent09e953704c65aabc24999630a9ec42f6db7d15d1 (diff)
downloadgmp-0b294c305dd7673531fdb0a570135af83176aa5d.tar.gz
mini-gmp/mini-gmp.c: use constants in conditions
Diffstat (limited to 'mini-gmp')
-rw-r--r--mini-gmp/mini-gmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mini-gmp/mini-gmp.c b/mini-gmp/mini-gmp.c
index 10cb80d4e..cd17d028a 100644
--- a/mini-gmp/mini-gmp.c
+++ b/mini-gmp/mini-gmp.c
@@ -769,12 +769,12 @@ mp_limb_t
mpn_invert_3by2 (mp_limb_t u1, mp_limb_t u0)
{
int GMP_LIMB_BITS_MUL_3 = GMP_LIMB_BITS * 3;
- if (sizeof (unsigned) * CHAR_BIT > GMP_LIMB_BITS_MUL_3)
+ if (sizeof (unsigned) * CHAR_BIT > GMP_LIMB_BITS * 3)
{
return (((unsigned) 1 << GMP_LIMB_BITS_MUL_3) - 1) /
(((unsigned) u1 << GMP_LIMB_BITS_MUL_3 / 3) + u0);
}
- else if (GMP_ULONG_BITS > GMP_LIMB_BITS_MUL_3)
+ else if (GMP_ULONG_BITS > GMP_LIMB_BITS * 3)
{
return (((unsigned long) 1 << GMP_LIMB_BITS_MUL_3) - 1) /
(((unsigned long) u1 << GMP_LIMB_BITS_MUL_3 / 3) + u0);