diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-04-15 17:45:46 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-04-15 17:45:46 +0000 |
commit | 43ed8f24050136500c40e52dac616242c1a0cdd9 (patch) | |
tree | 5fe66b8c8694747b5a95025d21b5298bf54024c2 /tests/tui_sub.c | |
parent | 315d562789badb481f03b9d81f17d6d83a5ce6db (diff) | |
download | mpfr-43ed8f24050136500c40e52dac616242c1a0cdd9.tar.gz |
replaced 2.2e-307 by DBL_MIN
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1888 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tui_sub.c')
-rw-r--r-- | tests/tui_sub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tui_sub.c b/tests/tui_sub.c index 40f814534..016acd051 100644 --- a/tests/tui_sub.c +++ b/tests/tui_sub.c @@ -22,6 +22,7 @@ MA 02111-1307, USA. */ #include <math.h> #include <stdio.h> #include <stdlib.h> +#include <float.h> #include <time.h> #include "gmp.h" #include "mpfr.h" @@ -217,7 +218,7 @@ main (int argc, char *argv[]) for (i=0;i<1000000;i++) { x = drand (); y = LONG_RAND (); - if (ABS(x)>2.2e-307) { + if (ABS(x)>=DBL_MIN) { /* avoid denormalized numbers and overflows */ rnd = (rnd_mode==-1) ? LONG_RAND()%4 : rnd_mode; check(y, x, rnd, 0.0); |