diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-02-07 14:40:53 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-02-07 14:40:53 +0000 |
commit | 3bff1c8e403f1bc5ab1d9ff8427147b60edad261 (patch) | |
tree | c884c5d9dca4b46656f43e8a8a72af68aa582d05 /tests/tacosh.c | |
parent | c730cef05666b549d599f681575bbbb14412ad50 (diff) | |
download | mpfr-3bff1c8e403f1bc5ab1d9ff8427147b60edad261.tar.gz |
In tests_default_random, allow emin and emax to be outside of the
current exponent range, so that underflow/overflow checks can be
done on 64-bit machines. If the resulting random number is outside
of the current range, the exponent range is extended, and restored
by the caller once the test has been done.
In tests/tacosh.c, changed TEST_RANDOM_EMIN and TEST_RANDOM_EMAX
to MPFR_EMAX_MAX for test_generic_huge, so that the intermediate
overflow case in mpfr_acosh is tested on 64-bit machines.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5265 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tacosh.c')
-rw-r--r-- | tests/tacosh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tacosh.c b/tests/tacosh.c index c052233ae..ff82c8b2b 100644 --- a/tests/tacosh.c +++ b/tests/tacosh.c @@ -32,8 +32,8 @@ MA 02110-1301, USA. */ #define TEST_FUNCTION mpfr_acosh #define TEST_RANDOM_POS 1 -#define TEST_RANDOM_EMIN 1073741822 -#define TEST_RANDOM_EMAX 1073741822 +#define TEST_RANDOM_EMIN MPFR_EMAX_MAX +#define TEST_RANDOM_EMAX MPFR_EMAX_MAX #define test_generic test_generic_huge #include "tgeneric.c" |