From fa06e09eddd04e5c23a47b10b7add0c09093e576 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 22 Jul 2016 14:43:55 +0000 Subject: [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 --- tests/tfma.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests/tfma.c') diff --git a/tests/tfma.c b/tests/tfma.c index dcd6e0654..333cafef9 100644 --- a/tests/tfma.c +++ b/tests/tfma.c @@ -124,13 +124,10 @@ test_overflow2 (void) /* The intermediate multiplication x * y will overflow. */ for (i = -9; i <= 9; i++) - RND_LOOP (rnd) + RND_LOOP_NO_RNDF (rnd) { int inf, overflow; - if (rnd == MPFR_RNDF) - continue; - inf = rnd == MPFR_RNDN || rnd == MPFR_RNDD || rnd == MPFR_RNDA; overflow = inf || i <= 0; @@ -730,7 +727,7 @@ main (int argc, char *argv[]) if (randlimb () % 2) mpfr_neg (z, z, MPFR_RNDN); - rnd = RND_RAND (); + rnd = RND_RAND_NO_RNDF (); mpfr_set_prec (slong, 2 * prec); if (mpfr_mul (slong, x, y, rnd)) { -- cgit v1.2.1