summaryrefslogtreecommitdiff
path: root/tests/tmul.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2016-07-08 12:50:31 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2016-07-08 12:50:31 +0000
commitede5b1e0952ea0482d9cf50bd0e401e9be350d89 (patch)
tree0ebdb505f43579b184cc59b7ccc3c14c43d14897 /tests/tmul.c
parentd917ef9abb8667ddc7cfd64b259594003fac0ef1 (diff)
downloadmpfr-ede5b1e0952ea0482d9cf50bd0e401e9be350d89.tar.gz
[src/mul.c] fixed underflow *after* rounding
[tests/tmul.c] fixed a test git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10603 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tmul.c')
-rw-r--r--tests/tmul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tmul.c b/tests/tmul.c
index c5472c466..ad5a0a7cc 100644
--- a/tests/tmul.c
+++ b/tests/tmul.c
@@ -684,7 +684,7 @@ test_underflow (mpfr_prec_t pmax)
if (inex)
mpfr_nextabove (c); /* ensures that b*c > (0.5 - 1/2*ulp_p(0.5))*2^emin */
mpfr_clear_underflow ();
- mpfr_mul (a, b, c, MPFR_RNDN);
+ mpfr_mul (a, b, c, MPFR_RNDU);
if (!mpfr_zero_p (a) && mpfr_underflow_p ())
{
printf ("Error, underflow flag incorrectly set for emin=%ld, rnd=%s\n",