diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 19:13:48 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 19:13:48 +0000 |
commit | 1f7f06d17a7f5bacaa40d8cea4237ffe094ef433 (patch) | |
tree | 97fdc324d0ae9640c439df546f625d8a15ad50fe /cmp_si.c | |
parent | 8f36df5d6bf5f20f4c4e60e9ac22e9d4d4a6508e (diff) | |
download | mpfr-1f7f06d17a7f5bacaa40d8cea4237ffe094ef433.tar.gz |
BITS_PER_MP_LIMB -> GMP_LIMB_BITS
got rid of BYTES_PER_MP_LIMB in configure.in (no longer defined by GMP)
Note[VL] (mpfr-impl.h): a mpn_sqr_n() macro is defined to use mpn_mul
if it is not already defined (in gmp-impl.h from GMP 4.x).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6644 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 - 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; |