summaryrefslogtreecommitdiff
path: root/tests/texceptions.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-06 13:27:05 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-06 13:27:05 +0000
commit19767e6f6f9089ef12f81e9f3b64f5c71ff71c84 (patch)
tree388f8324eb4f2595b607ac0b1afa7352ca4c9c5d /tests/texceptions.c
parent6e0b309b6faf9353e1732c77a95099a5aa5d86c0 (diff)
downloadmpfr-19767e6f6f9089ef12f81e9f3b64f5c71ff71c84.tar.gz
+ Better support of non IEEE doubles.
+ You can compile MPFR without gmp internal files (ie gmp-impl.h, gmp-mparam.h, and config.h). You only need gmp.h and libgmp.a. But you can still compile with GMP internal files (configure detects them). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2665 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/texceptions.c')
-rw-r--r--tests/texceptions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/texceptions.c b/tests/texceptions.c
index cf13f5a44..55fb5d8b6 100644
--- a/tests/texceptions.c
+++ b/tests/texceptions.c
@@ -29,7 +29,7 @@ static void
check_default_rnd(void)
{
mp_rnd_t r, t;
- for(r = 0 ; r < 4 ; r++)
+ for(r = 0 ; r < GMP_RND_MAX ; r++)
{
mpfr_set_default_rounding_mode (r);
t = mpfr_get_default_rounding_mode();
@@ -92,7 +92,7 @@ test_set_underflow (void)
r[1] = r[3] = zero;
for (s = 1; s > 0; s = -1)
{
- for (i = 0; i < 4; i++)
+ for (i = 0; i < GMP_RND_MAX ; i++)
{
int j;
int inex;
@@ -135,7 +135,7 @@ test_set_overflow (void)
r[1] = r[3] = max;
for (s = 1; s > 0; s = -1)
{
- for (i = 0; i < 4; i++)
+ for (i = 0; i < GMP_RND_MAX ; i++)
{
int j;
int inex;