diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-13 13:44:41 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-13 13:44:41 +0000 |
commit | 1931b8fa551b44b3ac787f2b077a231c4d339829 (patch) | |
tree | ddec24d0ab243d55f3e953f2b0d372d8773ecc13 /cosh.c | |
parent | 006f3c4678c66c90ad60336c1a89be3bec7f0c2c (diff) | |
download | mpfr-1931b8fa551b44b3ac787f2b077a231c4d339829.tar.gz |
improved test coverage
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2706 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'cosh.c')
-rw-r--r-- | cosh.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -49,15 +49,15 @@ mpfr_cosh (mpfr_ptr y, mpfr_srcptr xt , mp_rnd_t rnd_mode) MPFR_SET_POS(y); MPFR_RET(0); } - else if (MPFR_IS_ZERO(xt)) - return mpfr_set_ui(y, 1, rnd_mode); /* cosh(0) = 1 */ - /* Should never reach this code */ else - MPFR_ASSERTN(0); + { + MPFR_ASSERTD(MPFR_IS_ZERO(xt)); + return mpfr_set_ui (y, 1, rnd_mode); /* cosh(0) = 1 */ + } } - mpfr_init2(x,Nxt); - mpfr_abs(x, xt, GMP_RNDN); + mpfr_init2 (x, Nxt); + mpfr_abs (x, xt, GMP_RNDN); /* General case */ { |