diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-09-02 08:19:09 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-09-02 08:19:09 +0000 |
commit | 3597e459782f6cea6747f21b9f807e2fdcdbbfb9 (patch) | |
tree | c4d2fd0e881c76b2188a031b95992b0948277b98 /tests/tgeneric.c | |
parent | 191866417809d84bef72100fb011fdcb0a571397 (diff) | |
download | mpfr-3597e459782f6cea6747f21b9f807e2fdcdbbfb9.tar.gz |
[src/round_prec.c] Forbid rnd2 = MPFR_RNDF as it does not make much
sense without additional specification (and explained why).
[tests/{tcan_round.c,tgeneric.c}] Added MPFR_RNDF support with the
above restriction.
Note: 6 tests are failing as a consequence.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10780 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tgeneric.c')
-rw-r--r-- | tests/tgeneric.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tgeneric.c b/tests/tgeneric.c index 91c22ce7a..c4b730a3a 100644 --- a/tests/tgeneric.c +++ b/tests/tgeneric.c @@ -654,7 +654,8 @@ test_generic (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int nmax) TGENERIC_CHECK ("should have been min MPFR number (underflow)", MPFR_IS_ZERO (y)); } - else if (compare == 0 || mpfr_can_round (y, yprec, rnd, rnd, prec)) + else if (compare == 0 || rnd == MPFR_RNDF || + mpfr_can_round (y, yprec, rnd, rnd, prec)) { ctrn++; mpfr_set (t, y, rnd); |