From b6ca46407474e07a435ec12b45dc77e067ff6779 Mon Sep 17 00:00:00 2001 From: zimmerma Date: Tue, 26 Mar 2002 18:39:57 +0000 Subject: - use mpfr_test_init to initialize harware floats - use #ifdef HAVE_INFS when using DBL_NAN, ... - fixed some problems with wrongly converted f-p values (esp. under IRIX) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1783 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/ttan.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/ttan.c') diff --git a/tests/ttan.c b/tests/ttan.c index 714ee104f..a85cd2d87 100644 --- a/tests/ttan.c +++ b/tests/ttan.c @@ -60,9 +60,11 @@ main(int argc, char *argv[]) unsigned int prec[10] = {14, 15, 19, 22, 23, 24, 25, 40, 41, 52}; unsigned int prec2[10] = {4, 5, 6, 19, 70, 95, 100, 106, 107, 108}; - check53 (DBL_NAN, DBL_NAN, GMP_RNDN); - check53 (DBL_POS_INF, DBL_NAN, GMP_RNDN); - check53 (DBL_NEG_INF, DBL_NAN, GMP_RNDN); +#ifdef HAVE_INFS + check53 (DBL_NAN, DBL_NAN, GMP_RNDN); + check53 (DBL_POS_INF, DBL_NAN, GMP_RNDN); + check53 (DBL_NEG_INF, DBL_NAN, GMP_RNDN); +#endif mpfr_init (x); -- cgit v1.2.1