summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-03-02 00:32:46 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-03-02 00:32:46 +0000
commit3400e11293f2e4f4ec840d4e14faf5d88c01c4ed (patch)
treeca33150592e52770037682406c387aad818444a5
parent6acd7f78f88e5aae6bd477f42e8b2fa6ea0fd13c (diff)
downloadmpfr-3400e11293f2e4f4ec840d4e14faf5d88c01c4ed.tar.gz
[tests/tget_flt.c] Do tests that may involve subnormals only
if HAVE_DENORMS is defined. (merged changeset r10173 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10174 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tget_flt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tget_flt.c b/tests/tget_flt.c
index f63c406bf..fbf8cc734 100644
--- a/tests/tget_flt.c
+++ b/tests/tget_flt.c
@@ -186,6 +186,7 @@ main (void)
mpfr_mul_2exp (x, x, 1, MPFR_RNDN);
}
+#ifdef HAVE_DENORMS
mpfr_set_si_2exp (x, 1, -150, MPFR_RNDN);
g = 0.0;
f = mpfr_get_flt (x, MPFR_RNDN);
@@ -301,6 +302,7 @@ main (void)
printf ("expected %.8e, got %.8e\n", g, f);
exit (1);
}
+#endif
mpfr_set_si_2exp (x, 1, 128, MPFR_RNDN);
g = FLT_MAX;