diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-13 11:30:05 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-13 11:30:05 +0000 |
commit | 2ad2125c3aebbdeb8d6c3da12c653bb02fc507bb (patch) | |
tree | a90e3d1c86efb3bdc75522da84618c1e6a9f1673 /set.c | |
parent | 69febd2bb6843718a242f0ac95468822bd47e104 (diff) | |
download | mpfr-2ad2125c3aebbdeb8d6c3da12c653bb02fc507bb.tar.gz |
Add test for mpfr_cmpabs
Add test for mpfr_fits_
Add test for internal dumping functions.
Improve coverage test for exceptions / set / check.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2701 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set.c')
-rw-r--r-- | set.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -40,14 +40,12 @@ mpfr_set4 (mpfr_ptr a, mpfr_srcptr b, mp_rnd_t rnd_mode, int signb) MPFR_SET_INF(a); inex = 0; } - else if (MPFR_IS_ZERO(b)) + else { + MPFR_ASSERTD(MPFR_IS_ZERO(b)); MPFR_SET_ZERO(a); inex = 0; } - else - /* Should never reach this code */ - MPFR_ASSERTN(0); } else if (MPFR_LIKELY(MPFR_PREC(b) == MPFR_PREC(a))) { |