summaryrefslogtreecommitdiff
path: root/tests/tfma.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-07-22 14:43:55 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-07-22 14:43:55 +0000
commitfa06e09eddd04e5c23a47b10b7add0c09093e576 (patch)
tree7b03737745bf6968f12b54f8f255f9738969d8ab /tests/tfma.c
parent31b27e688bf029b0115f8afe0b04c50cfd86f4de (diff)
downloadmpfr-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/tfma.c')
-rw-r--r--tests/tfma.c7
1 files changed, 2 insertions, 5 deletions
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))
{