summaryrefslogtreecommitdiff
path: root/expm1.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-12 14:30:20 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-12 14:30:20 +0000
commitee3e57d7fe9a9ba3e3ec16f27bb5ec30303db379 (patch)
treeba373c528d9d0b812fd01f8567329d64be2f4ba7 /expm1.c
parentf0184cf71b820239d92f1e18558f550e7dbcbd6a (diff)
downloadmpfr-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/expm1.c b/expm1.c
index 3b20c3a87..67ab6183b 100644
--- a/expm1.c
+++ b/expm1.c
@@ -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);*/