diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-01-28 14:22:05 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-01-28 14:22:05 +0000 |
commit | 0d0a6452168bfa99b9fef5808c81738245992bc0 (patch) | |
tree | 7adc2d00d0d52fd8c59f10349506fe5e1a3e727b /tests/tui_sub.c | |
parent | 2f7d3ed598d3f6ec2925673ebc527d729a253576 (diff) | |
download | mpfr-0d0a6452168bfa99b9fef5808c81738245992bc0.tar.gz |
Better supports of non IEEE-754 floats (don't use anymore ieee_double_extract if _GMP_IEEE is not set).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2650 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tui_sub.c')
-rw-r--r-- | tests/tui_sub.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tui_sub.c b/tests/tui_sub.c index fc849b32a..b2eaa5b8f 100644 --- a/tests/tui_sub.c +++ b/tests/tui_sub.c @@ -194,19 +194,19 @@ check_nans (void) /* 1 - nan == nan */ mpfr_set_nan (x); mpfr_ui_sub (y, 1L, x, GMP_RNDN); - ASSERT_ALWAYS (mpfr_nan_p (y)); + MPFR_ASSERTN (mpfr_nan_p (y)); /* 1 - +inf == -inf */ mpfr_set_inf (x, 1); mpfr_ui_sub (y, 1L, x, GMP_RNDN); - ASSERT_ALWAYS (mpfr_inf_p (y)); - ASSERT_ALWAYS (mpfr_sgn (y) < 0); + MPFR_ASSERTN (mpfr_inf_p (y)); + MPFR_ASSERTN (mpfr_sgn (y) < 0); /* 1 - -inf == +inf */ mpfr_set_inf (x, -1); mpfr_ui_sub (y, 1L, x, GMP_RNDN); - ASSERT_ALWAYS (mpfr_inf_p (y)); - ASSERT_ALWAYS (mpfr_sgn (y) > 0); + MPFR_ASSERTN (mpfr_inf_p (y)); + MPFR_ASSERTN (mpfr_sgn (y) > 0); mpfr_clear (x); mpfr_clear (y); |