diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-14 23:05:51 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-14 23:05:51 +0000 |
commit | 6e5ffc68a8061e42a2680dd99455f89e2f4f8ca9 (patch) | |
tree | 3150eedf9dc6ae8d160042147ff46ac533e723dd /tanh.c | |
parent | f095a6c8a44a63379841097ddfbf4682e56e4036 (diff) | |
download | mpfr-6e5ffc68a8061e42a2680dd99455f89e2f4f8ca9.tar.gz |
new coverage tests
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2714 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tanh.c')
-rw-r--r-- | tanh.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -51,15 +51,13 @@ mpfr_tanh (mpfr_ptr y, mpfr_srcptr xt , mp_rnd_t rnd_mode) return mpfr_set_si(y,-1,rnd_mode); /* tanh(-inf) = -1 */ } /* tanh(0) = 0 */ - else if (MPFR_IS_ZERO(xt)) - { + else /* xt is zero */ + { + MPFR_ASSERTD(MPFR_IS_ZERO(xt)); MPFR_SET_ZERO(y); MPFR_SET_SAME_SIGN(y,xt); MPFR_RET(0); } - /* Should never reach this point */ - else - MPFR_ASSERTN(0); } mpfr_init2(x,Nxt); |