summaryrefslogtreecommitdiff
path: root/tests/texp.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-10 12:13:25 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-10 12:13:25 +0000
commit610a8851990d905908fae318fc91dda3b21ee270 (patch)
tree69a66b428bab8b1c92dd69410874dcd7089b84ca /tests/texp.c
parent11b100b3ef4098c0afc5f5f82a9600077ff89ee9 (diff)
downloadmpfr-610a8851990d905908fae318fc91dda3b21ee270.tar.gz
HAVE_FESETROUND renamed to MPFR_HAVE_FESETROUND to avoid possible
name conflict. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1844 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/texp.c')
-rw-r--r--tests/texp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/texp.c b/tests/texp.c
index 2193a2dcb..89fec889c 100644
--- a/tests/texp.c
+++ b/tests/texp.c
@@ -46,7 +46,7 @@ check3 (double d, mp_rnd_t rnd, double e)
mpfr_t x, y; double f; int u=0, ck=0;
mpfr_init2(x, 53); mpfr_init2(y, 53);
-#ifdef HAVE_FESETROUND
+#ifdef MPFR_HAVE_FESETROUND
mpfr_set_machine_rnd_mode(rnd);
#endif
if (e==0.0) e = exp(d); else ck=1; /* really check */
@@ -216,7 +216,7 @@ compare_exp2_exp3 (int n)
int
main (int argc, char *argv[])
{
-#ifdef HAVE_FESETROUND
+#ifdef MPFR_HAVE_FESETROUND
int i, N, s=0, e, maxe=0;
double lo, hi;
#endif
@@ -272,7 +272,7 @@ main (int argc, char *argv[])
check3(5.30015757134837031117e+02, GMP_RNDD, 1.5237672861171573939e230);
check3(5.16239362447650933063e+02, GMP_RNDZ, 1.5845518406744492105e224);
check3(6.00812634798592370977e-01, GMP_RNDN, 1.823600119339019443);
-#ifdef HAVE_FESETROUND
+#ifdef MPFR_HAVE_FESETROUND
SEED_RAND (time(NULL));
N = (argc==1) ? 0 : atoi(argv[1]);
lo = (argc>=3) ? atof(argv[2]) : -7.083964185e2;