diff options
author | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-06-19 19:55:18 +0000 |
---|---|---|
committer | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-06-19 19:55:18 +0000 |
commit | f4320c03106b67ca7c728f973f61209d39da9a03 (patch) | |
tree | d8b1f0852df1945a9cf73de48c8d62b37222b363 | |
parent | cb1e9ee3781896720a53157c6d0a6fde5281f85a (diff) | |
download | mpfr-f4320c03106b67ca7c728f973f61209d39da9a03.tar.gz |
vasprintf.c: convert GMP_RNDx to MPFR_RNDx.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6282 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | vasprintf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vasprintf.c b/vasprintf.c index f05a0095e..97293ebce 100644 --- a/vasprintf.c +++ b/vasprintf.c @@ -1330,8 +1330,8 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, if (exp == 0 || (spec.prec == 0 - && ((spec.rnd_mode == GMP_RNDD && MPFR_IS_NEG (p)) - || (spec.rnd_mode == GMP_RNDU && MPFR_IS_POS (p))))) + && ((spec.rnd_mode == MPFR_RNDD && MPFR_IS_NEG (p)) + || (spec.rnd_mode == MPFR_RNDU && MPFR_IS_POS (p))))) /* rounded up to 1: one digit '1' in integral part, zeros (if any) in fractional part */ { @@ -1363,8 +1363,8 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, /* p is too small for the given precision, output "0.0_00", or "0.0_01" */ { - if ((spec.rnd_mode == GMP_RNDD && MPFR_IS_NEG (p)) - || (spec.rnd_mode == GMP_RNDU && MPFR_IS_POS (p))) + if ((spec.rnd_mode == MPFR_RNDD && MPFR_IS_NEG (p)) + || (spec.rnd_mode == MPFR_RNDU && MPFR_IS_POS (p))) /* round away from zero: the last output digit is '1' */ { np->fp_leading_zeros = spec.prec - 1; |