diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-06-25 13:15:40 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-06-25 13:15:40 +0000 |
commit | 1df259220eb5bf13804a69312adc760057d2ce4c (patch) | |
tree | e6c66c4c3baee046681a36a0548ccfeafffb2af8 /tests/texpm1.c | |
parent | 3995ccc2ac359a2a66c567b0cc48b0ca987231e7 (diff) | |
download | mpfr-1df259220eb5bf13804a69312adc760057d2ce4c.tar.gz |
Use MPFR_IS_NEG and MPFR_IS_POS instead of comparing the sign with 0.
Done with
perl -pi -e '
s/MPFR_SIGN *\(([^)]+)\) *<=? *0/MPFR_IS_NEG ($1)/g;
s/MPFR_SIGN *\(([^)]+)\) *>=? *0/MPFR_IS_POS ($1)/g;
' {src,tests}/*.{c,h}
and some manual changes.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9092 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/texpm1.c')
-rw-r--r-- | tests/texpm1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/texpm1.c b/tests/texpm1.c index d1babdd17..0f75844cc 100644 --- a/tests/texpm1.c +++ b/tests/texpm1.c @@ -103,21 +103,21 @@ special (void) mpfr_clear_flags (); mpfr_set_str_binary (x, "1.1E1000000000"); i = test_expm1 (x, x, MPFR_RNDN); - MPFR_ASSERTN (MPFR_IS_INF (x) && MPFR_SIGN (x) > 0); + MPFR_ASSERTN (MPFR_IS_INF (x) && MPFR_IS_POS (x)); MPFR_ASSERTN (mpfr_overflow_p ()); MPFR_ASSERTN (i == 1); mpfr_clear_flags (); mpfr_set_str_binary (x, "1.1E1000000000"); i = test_expm1 (x, x, MPFR_RNDU); - MPFR_ASSERTN (MPFR_IS_INF (x) && MPFR_SIGN (x) > 0); + MPFR_ASSERTN (MPFR_IS_INF (x) && MPFR_IS_POS (x)); MPFR_ASSERTN (mpfr_overflow_p ()); MPFR_ASSERTN (i == 1); mpfr_clear_flags (); mpfr_set_str_binary (x, "1.1E1000000000"); i = test_expm1 (x, x, MPFR_RNDD); - MPFR_ASSERTN (!MPFR_IS_INF (x) && MPFR_SIGN (x) > 0); + MPFR_ASSERTN (!MPFR_IS_INF (x) && MPFR_IS_POS (x)); MPFR_ASSERTN (mpfr_overflow_p ()); MPFR_ASSERTN (i == -1); |