summaryrefslogtreecommitdiff
path: root/mpfr-test.h
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 /mpfr-test.h
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 'mpfr-test.h')
-rw-r--r--mpfr-test.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/mpfr-test.h b/mpfr-test.h
index b59eecce0..0c3c1b71d 100644
--- a/mpfr-test.h
+++ b/mpfr-test.h
@@ -22,9 +22,6 @@ MA 02111-1307, USA. */
#ifndef __MPFR_TEST_H__
#define __MPFR_TEST_H__
-#include "gmp.h"
-#include "gmp-impl.h"
-#include "mpfr.h"
#include "mpfr-impl.h"
#if HAVE_CONFIG_H
@@ -39,7 +36,7 @@ MA 02111-1307, USA. */
#define MAXNORM 1.7976931348623157081e308 /* 2^(1023)*(2-2^(-52)) */
/* Generates a random rounding mode */
-#define RND_RAND() (randlimb() % 4)
+#define RND_RAND() (randlimb() % GMP_RND_MAX)
/* Generates a random sign */
#define SIGN_RAND() ( (randlimb()%2) ? MPFR_SIGN_POS : MPFR_SIGN_NEG)