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/tsub_ui.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/tsub_ui.c')
-rw-r--r-- | tests/tsub_ui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tsub_ui.c b/tests/tsub_ui.c index 926f4addb..ed3a354a8 100644 --- a/tests/tsub_ui.c +++ b/tests/tsub_ui.c @@ -96,19 +96,19 @@ check_nans (void) /* nan - 1 == nan */ mpfr_set_nan (x); mpfr_sub_ui (y, x, 1L, GMP_RNDN); - ASSERT_ALWAYS (mpfr_nan_p (y)); + MPFR_ASSERTN (mpfr_nan_p (y)); /* +inf - 1 == +inf */ mpfr_set_inf (x, 1); mpfr_sub_ui (y, x, 1L, 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); /* -inf - 1 == -inf */ mpfr_set_inf (x, -1); mpfr_sub_ui (y, x, 1L, 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); |