diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2012-06-26 22:35:39 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2012-06-26 22:35:39 +0000 |
commit | 751e3b472553cc09b0ef481e493b9d33ee105461 (patch) | |
tree | e42789d4ffeb61e6d3c6152b441423ff2be2d1ee /tests/tsqrt.c | |
parent | dd6c7ccdda671496280c77368532b3b008eff80f (diff) | |
download | mpfr-751e3b472553cc09b0ef481e493b9d33ee105461.tar.gz |
Added configure option --enable-assert=none to avoid checking any
assertion (this is based on a patch by Patrick).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8271 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsqrt.c')
-rw-r--r-- | tests/tsqrt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tsqrt.c b/tests/tsqrt.c index 9990ce218..6ba3ab820 100644 --- a/tests/tsqrt.c +++ b/tests/tsqrt.c @@ -351,11 +351,13 @@ special (void) mpfr_set_exp (x, GMP_NUMB_BITS); mpfr_add_ui (x, x, 1, MPFR_RNDN); /* now x = 2^(GMP_NUMB_BITS - 1) + 1 (GMP_NUMB_BITS bits) */ - MPFR_ASSERTN (mpfr_mul (x, x, x, MPFR_RNDN) == 0); /* exact */ + inexact = mpfr_mul (x, x, x, MPFR_RNDN); + MPFR_ASSERTN (inexact == 0); /* exact */ inexact = test_sqrt (z, x, MPFR_RNDN); /* even rule: z should be 2^(GMP_NUMB_BITS - 1) */ MPFR_ASSERTN (inexact < 0); - MPFR_ASSERTN (mpfr_cmp_ui_2exp (z, 1, GMP_NUMB_BITS - 1) == 0); + inexact = mpfr_cmp_ui_2exp (z, 1, GMP_NUMB_BITS - 1); + MPFR_ASSERTN (inexact == 0); mpfr_nextbelow (x); /* now x is just below [2^(GMP_NUMB_BITS - 1) + 1]^2 */ inexact = test_sqrt (z, x, MPFR_RNDN); |