summaryrefslogtreecommitdiff
path: root/cmp_si.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmp_si.c')
-rw-r--r--cmp_si.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmp_si.c b/cmp_si.c
index d81cd2a92..b580d9367 100644
--- a/cmp_si.c
+++ b/cmp_si.c
@@ -64,21 +64,21 @@ mpfr_cmp_si_2exp (mpfr_srcptr b, long int i, mp_exp_t f)
e = MPFR_GET_EXP (b); /* 2^(e-1) <= b < 2^e */
if (e <= f)
return -si;
- if (f < MPFR_EMAX_MAX - BITS_PER_MP_LIMB &&
- e > f + BITS_PER_MP_LIMB)
+ if (f < MPFR_EMAX_MAX - GMP_LIMB_BITS &&
+ e > f + GMP_LIMB_BITS)
return si;
- /* now f < e <= f + BITS_PER_MP_LIMB */
+ /* now f < e <= f + GMP_LIMB_BITS */
c = (mp_limb_t) ai;
count_leading_zeros(k, c);
- if ((int) (e - f) > BITS_PER_MP_LIMB - k)
+ if ((int) (e - f) > GMP_LIMB_BITS - k)
return si;
- if ((int) (e - f) < BITS_PER_MP_LIMB - k)
+ if ((int) (e - f) < GMP_LIMB_BITS - k)
return -si;
/* now b and i*2^f have the same exponent */
c <<= k;
- bn = (MPFR_PREC(b) - 1) / BITS_PER_MP_LIMB;
+ bn = (MPFR_PREC(b) - 1) / GMP_LIMB_BITS;
bp = MPFR_MANT(b);
if (bp[bn] > c)
return si;