summaryrefslogtreecommitdiff
path: root/tests/ttan.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-03-26 18:39:57 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-03-26 18:39:57 +0000
commitb6ca46407474e07a435ec12b45dc77e067ff6779 (patch)
treec646f424e87e47b64f46d65670ec564f9c206cdf /tests/ttan.c
parent966581fea9ed11672ce12db8436d8bd72fa47e95 (diff)
downloadmpfr-b6ca46407474e07a435ec12b45dc77e067ff6779.tar.gz
- 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
Diffstat (limited to 'tests/ttan.c')
-rw-r--r--tests/ttan.c8
1 files changed, 5 insertions, 3 deletions
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);