diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-02-15 14:56:00 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-02-15 14:56:00 +0000 |
commit | ab8d897eaedf06ea06d439f6ebc926ebab0ba5b9 (patch) | |
tree | 29e4422146f52457b53754035db588de8f950dcd /tanh.c | |
parent | aa25141fc65d819c52030c2e8956acf375e3e851 (diff) | |
download | mpfr-ab8d897eaedf06ea06d439f6ebc926ebab0ba5b9.tar.gz |
Improve initial prec.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3321 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tanh.c')
-rw-r--r-- | tanh.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -76,8 +76,7 @@ mpfr_tanh (mpfr_ptr y, mpfr_srcptr xt , mp_rnd_t rnd_mode) /* The optimal number of bits: see algorithms.ps */ Nt = Nt + MPFR_INT_CEIL_LOG2 (Nt) + 4; - if (MPFR_GET_EXP (x) > 0) - Nt += MPFR_GET_EXP (x); + Nt += ABS (MPFR_GET_EXP (x)); /* initialise of intermediary variable */ mpfr_init2 (t, Nt); |