diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-10-26 11:59:59 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-10-26 11:59:59 +0000 |
commit | da4b19c01ec0e27d42071d294e29fc56e1a1b16a (patch) | |
tree | 393496f9c6cc54d9bcde0fc0d77691fdcfdf255a /mpz_set_fr.c | |
parent | 33336e9a85f1ae242191e1b2286cded95f11362b (diff) | |
download | mpfr-da4b19c01ec0e27d42071d294e29fc56e1a1b16a.tar.gz |
protected all macros: xxx -> MPFR_xxx
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@786 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpz_set_fr.c')
-rw-r--r-- | mpz_set_fr.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |