summaryrefslogtreecommitdiff
path: root/cosh.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-13 13:44:41 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-13 13:44:41 +0000
commit1931b8fa551b44b3ac787f2b077a231c4d339829 (patch)
treeddec24d0ab243d55f3e953f2b0d372d8773ecc13 /cosh.c
parent006f3c4678c66c90ad60336c1a89be3bec7f0c2c (diff)
downloadmpfr-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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cosh.c b/cosh.c
index b20a7061e..bf1caf77a 100644
--- a/cosh.c
+++ b/cosh.c
@@ -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 */
{