From da4b19c01ec0e27d42071d294e29fc56e1a1b16a Mon Sep 17 00:00:00 2001 From: zimmerma Date: Thu, 26 Oct 2000 11:59:59 +0000 Subject: protected all macros: xxx -> MPFR_xxx git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@786 280ebfd0-de03-0410-8827-d642c229c3f4 --- mpz_set_fr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mpz_set_fr.c') diff --git a/mpz_set_fr.c b/mpz_set_fr.c index 7f4d79c4d..7c01399af 100644 --- a/mpz_set_fr.c +++ b/mpz_set_fr.c @@ -37,7 +37,7 @@ mpz_set_fr (z, f) { int fn, sh; - fn = 1 + (PREC(f)-1)/BITS_PER_MP_LIMB; + fn = 1 + (MPFR_PREC(f)-1)/BITS_PER_MP_LIMB; /* check whether allocated space for z is enough */ if (ALLOC(z) < fn) { @@ -46,11 +46,11 @@ mpz_set_fr (z, f) ALLOC(z) = fn; } - sh = fn*BITS_PER_MP_LIMB - PREC(f); - if (sh) mpn_rshift(PTR(z), MANT(f), fn, sh); - else MPN_COPY(PTR(z), MANT(f), fn); + sh = fn*BITS_PER_MP_LIMB - MPFR_PREC(f); + if (sh) mpn_rshift(PTR(z), MPFR_MANT(f), fn, sh); + else MPN_COPY(PTR(z), MPFR_MANT(f), fn); SIZ(z) = fn; - return EXP(f)-PREC(f); + return MPFR_EXP(f)-MPFR_PREC(f); } -- cgit v1.2.1