diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-07-22 14:43:55 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-07-22 14:43:55 +0000 |
commit | fa06e09eddd04e5c23a47b10b7add0c09093e576 (patch) | |
tree | 7b03737745bf6968f12b54f8f255f9738969d8ab /tests/tgeneric_ui.c | |
parent | 31b27e688bf029b0115f8afe0b04c50cfd86f4de (diff) | |
download | mpfr-fa06e09eddd04e5c23a47b10b7add0c09093e576.tar.gz |
[tests] Define the RND_RAND_NO_RNDF and RND_LOOP_NO_RNDF macros, similar
to RND_RAND and RND_LOOP respectively but excluding MPFR_RNDF, to be
used for tests that don't make sense in the faithful rounding mode.
Replaced code to use these macros, fixing the remaining failures.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10656 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tgeneric_ui.c')
-rw-r--r-- | tests/tgeneric_ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tgeneric_ui.c b/tests/tgeneric_ui.c index b7c53a97e..f05a4fc96 100644 --- a/tests/tgeneric_ui.c +++ b/tests/tgeneric_ui.c @@ -74,7 +74,7 @@ test_generic_ui (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N) else /* unsigned */ u = n == 2 ? 0 : -1; } - do rnd = RND_RAND (); while (rnd == MPFR_RNDF); + rnd = RND_RAND_NO_RNDF (); mpfr_set_prec (y, yprec); compare = TEST_FUNCTION (y, x, u, rnd); if (mpfr_can_round (y, yprec, rnd, rnd, prec)) |