diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-04-05 07:21:21 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-04-05 07:21:21 +0000 |
commit | 2afb297b498598ee193d844235157d3bd8e4c6d0 (patch) | |
tree | c7598745386be8715db56b415cb6d9e054e62cd6 /tests/tdiv.c | |
parent | b2189c290b8758184ca6810535b416869c060c1e (diff) | |
download | mpfr-2afb297b498598ee193d844235157d3bd8e4c6d0.tar.gz |
use AC_CHECK_HEADERS to check for fenv.h
and AC_CHECK_FUNCS to check for lrand48
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1813 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tdiv.c')
-rw-r--r-- | tests/tdiv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tdiv.c b/tests/tdiv.c index aeb876f79..dcb976f31 100644 --- a/tests/tdiv.c +++ b/tests/tdiv.c @@ -47,7 +47,7 @@ check4 (double N, double D, mp_rnd_t rnd_mode, int p, double Q) mpfr_set_d(n, N, rnd_mode); mpfr_set_d(d, D, rnd_mode); mpfr_div(q, n, d, rnd_mode); -#ifdef HAVE_FENV +#ifdef HAVE_FENV_H mpfr_set_machine_rnd_mode(rnd_mode); #endif if (Q==0.0) Q = N/D; @@ -451,7 +451,7 @@ main (int argc, char *argv[]) { mpfr_t x, y, z; -#ifdef HAVE_FENV +#ifdef HAVE_FENV_H int N, i; double n, d, e; @@ -494,7 +494,7 @@ main (int argc, char *argv[]) check53(1.04636807108079349236e-189, 3.72295730823253012954e-292, GMP_RNDZ, 2.810583051186143125e102); -#ifdef HAVE_FENV +#ifdef HAVE_FENV_H N = (argc>1) ? atoi(argv[1]) : 100000; SEED_RAND (time(NULL)); for (i=0;i<N;i++) |