diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-08-29 10:30:11 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-08-29 10:30:11 +0000 |
commit | 6ccdadfa3997ee137792f9781bba96416324dd4e (patch) | |
tree | 0fb43b6c0e6853fdd1ab9948c084a90c92f5e993 /tests | |
parent | 9a83db887828fb89829df602b67a7406c3c09c72 (diff) | |
download | mpfr-6ccdadfa3997ee137792f9781bba96416324dd4e.tar.gz |
[tests/tdiv_ui.c] Added a comment about a spurious failure
with MPFR_RNDF if RND_LOOP_NO_RNDF were not used.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13073 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tdiv_ui.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tdiv_ui.c b/tests/tdiv_ui.c index 679e8438f..19d0504b4 100644 --- a/tests/tdiv_ui.c +++ b/tests/tdiv_ui.c @@ -172,6 +172,12 @@ check_inexact (void) { mpfr_set_prec (y, py); mpfr_set_prec (z, py + mp_bits_per_limb); + /* The following test fails with MPFR_RNDF ("Wrong ternary value") + when building with CFLAGS="-Wall -Werror -std=c90 -pedantic + -Wno-error=overlength-strings -Wno-error=format" so that + MPFR_LONG_WITHIN_LIMB is not defined (the implementation + is not the same in this case). But the ternary value is not + specified for MPFR_RNDF. Thus use RND_LOOP_NO_RNDF. */ RND_LOOP_NO_RNDF (rnd) { inexact = mpfr_div_ui (y, x, u, (mpfr_rnd_t) rnd); |