From 44b4dd94bb98c8d9e7850ae401232bd1b2ea3028 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 22 May 2003 21:39:40 +0000 Subject: Macros MPFR_EXP_INVALID (invalid exponent value) and MPFR_EXP_CHECK added. Code update to use MPFR_GET_EXP and MPFR_SET_EXP instead of MPFR_EXP to allow more bug detection related to special values. Macros MPFR_SET_NAN, MPFR_SET_INF, MPFR_SET_ZERO and MPFR_INIT set the exponent of the number to MPFR_EXP_INVALID if MPFR_EXP_CHECK is defined. Compile with -DMPFR_EXP_CHECK and make check to see the potential problems; currently, 40 of 76 tests fail. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2301 280ebfd0-de03-0410-8827-d642c229c3f4 --- get_si.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'get_si.c') diff --git a/get_si.c b/get_si.c index 9a11ceae0..d1e5bf1d1 100644 --- a/get_si.c +++ b/get_si.c @@ -47,7 +47,7 @@ mpfr_get_si (mpfr_srcptr f, mp_rnd_t rnd) more limbs */ /* now the result is in the most significant limb of x */ - exp = MPFR_EXP(x); /* since |x| >= 1, exp >= 1 */ + exp = MPFR_GET_EXP (x); /* since |x| >= 1, exp >= 1 */ n = MPFR_ABSSIZE(x); s = MPFR_MANT(x)[n - 1] >> (GMP_NUMB_BITS - exp); -- cgit v1.2.1