diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-04-12 14:29:58 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-04-12 14:29:58 +0000 |
commit | 9366996deb808542640354f0bd0e0c13fa7a4ffc (patch) | |
tree | eafe05625747ca957a55891e5ee0cef71f385322 /tests | |
parent | f0544a42b7d141e3615d51b228ccd8b12549eab4 (diff) | |
download | mpfr-9366996deb808542640354f0bd0e0c13fa7a4ffc.tar.gz |
New tests.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1863 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tget_d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tget_d.c b/tests/tget_d.c index 276bdd57f..5e05d4f4c 100644 --- a/tests/tget_d.c +++ b/tests/tget_d.c @@ -49,13 +49,13 @@ check_denorms () break; /* second iteration */ rnd_mode = GMP_RNDN; #endif - for (k = 1; k <= 7; k += 2) + for (k = -17; k <= 17; k += 2) { d = k * DBL_MIN; /* k * 2^(-1022) */ f = 1.0; - mpfr_set_ui (x, k, GMP_RNDN); + mpfr_set_si (x, k, GMP_RNDN); mpfr_div_2exp (x, x, 1022, GMP_RNDN); /* k * 2^(-1022) */ - for (n=0; n<=55; n++) + for (n = 0; n <= 58; n++) { d2 = d * f; dd = mpfr_get_d (x, rnd_mode); |