summaryrefslogtreecommitdiff
path: root/tests/tset_q.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/tset_q.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/tset_q.c')
-rw-r--r--tests/tset_q.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tset_q.c b/tests/tset_q.c
index 732b25443..02853c5e6 100644
--- a/tests/tset_q.c
+++ b/tests/tset_q.c
@@ -74,12 +74,14 @@ static void check0(void)
{
mpq_t y;
mpfr_t x;
- int inexact, r;
+ int inexact;
+ mp_rnd_t r;
+
/* Check for +0 */
mpfr_init(x);
mpq_init(y);
mpq_set_si(y, 0, 1);
- for(r = 0 ; r < 4 ; r++)
+ for(r = 0 ; r < GMP_RND_MAX ; r++)
{
inexact = mpfr_set_q(x, y, r);
if (!MPFR_IS_ZERO(x) || !MPFR_IS_POS(x) || inexact)