summaryrefslogtreecommitdiff
path: root/mpfr/tests/tabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpfr/tests/tabs.c')
-rw-r--r--mpfr/tests/tabs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mpfr/tests/tabs.c b/mpfr/tests/tabs.c
index b586b8365..a767cda1f 100644
--- a/mpfr/tests/tabs.c
+++ b/mpfr/tests/tabs.c
@@ -21,6 +21,7 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <stdlib.h>
+#include <float.h>
#include "gmp.h"
#include "mpfr.h"
#include "mpfr-impl.h"
@@ -36,6 +37,8 @@ check_inexact (void)
mp_rnd_t rnd;
int inexact, cmp;
+ tests_start_mpfr ();
+
mpfr_init (x);
mpfr_init (y);
mpfr_init (absx);
@@ -130,7 +133,7 @@ main (int argc, char *argv[])
#ifdef HAVE_DENORMS
while (0);
#else
- while (absd <= 2.2e-307);
+ while (absd < DBL_MIN);
#endif
rnd = LONG_RAND() % 4;
mpfr_set_d (x, d, 0);
@@ -148,5 +151,6 @@ main (int argc, char *argv[])
mpfr_clear(x);
+ tests_end_mpfr ();
return 0;
}