diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2011-01-14 15:28:45 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2011-01-14 15:28:45 +0000 |
commit | 5768830e630629ddbaa1fb54d71e5fce3428d667 (patch) | |
tree | 00066085bbd3f0f78524014320dc2fc65371cb70 /tests/tgeneric.c | |
parent | 6d9970b940bb38427e95494bfc4bccd81a702441 (diff) | |
download | mpfr-5768830e630629ddbaa1fb54d71e5fce3428d667.tar.gz |
[tests/tgeneric.c] Fixed code introduced in r7346.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7354 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tgeneric.c')
-rw-r--r-- | tests/tgeneric.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tgeneric.c b/tests/tgeneric.c index c9c52de69..3c2803a1e 100644 --- a/tests/tgeneric.c +++ b/tests/tgeneric.c @@ -146,7 +146,7 @@ test_generic (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N) /* Note: in precision p1, we test 4 special cases. */ for (n = 0; n < (prec == p1 ? N + 4 : N); n++) { - int finite_inputs = 0; + int infinite_input = 0; xprec = prec; if (randlimb () & 1) @@ -220,12 +220,12 @@ test_generic (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N) d = mpfr_get_d (u, rnd); compare = TEST_FUNCTION (y, d, x, rnd); /* d can be infinite due to overflow in mpfr_get_d */ - finite_inputs |= ! DOUBLE_ISINF (d); + infinite_input |= ! DOUBLE_ISINF (d); #elif defined(DOUBLE_ARG2) d = mpfr_get_d (u, rnd); compare = TEST_FUNCTION (y, x, d, rnd); /* d can be infinite due to overflow in mpfr_get_d */ - finite_inputs |= ! DOUBLE_ISINF (d); + infinite_input |= ! DOUBLE_ISINF (d); #else compare = TEST_FUNCTION (y, x, rnd); #endif @@ -242,7 +242,7 @@ test_generic (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N) TGENERIC_CHECK ("Bad overflow flag", (compare != 0) ^ (mpfr_overflow_p () == 0)); TGENERIC_CHECK ("Bad division-by-zero flag", - (compare == 0 && finite_inputs) ^ + (compare == 0 && !infinite_input) ^ (mpfr_divby0_p () == 0)); } else if (MPFR_IS_ZERO (y)) |