diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 21:36:26 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 21:36:26 +0000 |
commit | e77ab9365d2b9771c80e851ddc63dda142613188 (patch) | |
tree | 70f1d98c129b9f3ffda65d5d5b690cbe3e19e836 /cmp_si.c | |
parent | fbc1bcfac594b04268c66729bf4a023910be578a (diff) | |
download | mpfr-e77ab9365d2b9771c80e851ddc63dda142613188.tar.gz |
Replaced GMP_LIMB_BITS by GMP_NUMB_BITS to use only one of these macros.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6646 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'cmp_si.c')
-rw-r--r-- | cmp_si.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 - GMP_LIMB_BITS && - e > f + GMP_LIMB_BITS) + if (f < MPFR_EMAX_MAX - GMP_NUMB_BITS && + e > f + GMP_NUMB_BITS) return si; - /* now f < e <= f + GMP_LIMB_BITS */ + /* now f < e <= f + GMP_NUMB_BITS */ c = (mp_limb_t) ai; count_leading_zeros(k, c); - if ((int) (e - f) > GMP_LIMB_BITS - k) + if ((int) (e - f) > GMP_NUMB_BITS - k) return si; - if ((int) (e - f) < GMP_LIMB_BITS - k) + if ((int) (e - f) < GMP_NUMB_BITS - k) return -si; /* now b and i*2^f have the same exponent */ c <<= k; - bn = (MPFR_PREC(b) - 1) / GMP_LIMB_BITS; + bn = (MPFR_PREC(b) - 1) / GMP_NUMB_BITS; bp = MPFR_MANT(b); if (bp[bn] > c) return si; |