diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-12 14:30:20 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-12 14:30:20 +0000 |
commit | ee3e57d7fe9a9ba3e3ec16f27bb5ec30303db379 (patch) | |
tree | ba373c528d9d0b812fd01f8567329d64be2f4ba7 /expm1.c | |
parent | f0184cf71b820239d92f1e18558f550e7dbcbd6a (diff) | |
download | mpfr-ee3e57d7fe9a9ba3e3ec16f27bb5ec30303db379.tar.gz |
improved test coverage
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2689 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'expm1.c')
-rw-r--r-- | expm1.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -49,14 +49,13 @@ mpfr_expm1 (mpfr_ptr y, mpfr_srcptr x , mp_rnd_t rnd_mode) else return mpfr_set_si(y, -1, rnd_mode); } - else if(MPFR_IS_ZERO(x)) + else { + MPFR_ASSERTD(MPFR_IS_ZERO(x)); MPFR_SET_ZERO(y); /* expm1(+/- 0) = +/- 0 */ MPFR_SET_SAME_SIGN(y,x); MPFR_RET(0); } - else - MPFR_ASSERTN(0); } /* Useless due to mpfr_set MPFR_CLEAR_FLAGS(y);*/ |