From 1f7f06d17a7f5bacaa40d8cea4237ffe094ef433 Mon Sep 17 00:00:00 2001 From: zimmerma Date: Fri, 8 Jan 2010 19:13:48 +0000 Subject: 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 --- gmp_op.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gmp_op.c') diff --git a/gmp_op.c b/gmp_op.c index a0168f3ba..b72081fcd 100644 --- a/gmp_op.c +++ b/gmp_op.c @@ -31,7 +31,7 @@ init_set_z (mpfr_ptr t, mpz_srcptr z) int i; if (mpz_size (z) <= 1) - p = BITS_PER_MP_LIMB; + p = GMP_LIMB_BITS; else MPFR_MPZ_SIZEINBASE2 (p, z); mpfr_init2 (t, p); @@ -313,7 +313,7 @@ mpfr_cmp_f (mpfr_srcptr x, mpf_srcptr z) mpfr_t t; int res; - mpfr_init2 (t, MPFR_PREC_MIN + ABS(SIZ(z)) * BITS_PER_MP_LIMB ); + mpfr_init2 (t, MPFR_PREC_MIN + ABS(SIZ(z)) * GMP_LIMB_BITS ); res = mpfr_set_f (t, z, MPFR_RNDN); MPFR_ASSERTD (res == 0); res = mpfr_cmp (x, t); -- cgit v1.2.1