diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-05-07 15:13:02 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-05-07 15:13:02 +0000 |
commit | 3ffa08c3f9f5d2790dca53a5a39f95ab54390acd (patch) | |
tree | de0193ea3a91c163a9b23921b1517e85905403b0 /round_near_x.c | |
parent | 5b51d2ffc3e7364b683023047aaffc78d1a894a6 (diff) | |
download | mpfr-3ffa08c3f9f5d2790dca53a5a39f95ab54390acd.tar.gz |
New exponent type mpfr_exp_t for MPFR (replacing GMP's mp_exp_t).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6789 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'round_near_x.c')
-rw-r--r-- | round_near_x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/round_near_x.c b/round_near_x.c index b103646ed..be8900f7c 100644 --- a/round_near_x.c +++ b/round_near_x.c @@ -163,13 +163,13 @@ mpfr_round_near_x (mpfr_ptr y, mpfr_srcptr v, mpfr_uexp_t err, int dir, MPFR_ASSERTD (dir == 0 || dir == 1); /* First check if we can round. The test is more restrictive than - necessary. Note that if err is not representable in an mp_exp_t, - then err > MPFR_PREC (v) and the conversion to mp_exp_t will not + necessary. Note that if err is not representable in an mpfr_exp_t, + then err > MPFR_PREC (v) and the conversion to mpfr_exp_t will not occur. */ if (!(err > MPFR_PREC (y) + 1 && (err > MPFR_PREC (v) || mpfr_round_p (MPFR_MANT (v), MPFR_LIMB_SIZE (v), - (mp_exp_t) err, + (mpfr_exp_t) err, MPFR_PREC (y) + (rnd == MPFR_RNDN))))) /* If we assume we can not round, return 0, and y is not modified */ return 0; |