summaryrefslogtreecommitdiff
path: root/tanh.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-11-10 12:05:20 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-11-10 12:05:20 +0000
commitebfdb477d0d1a6d68ef8ed7654562716d1964eca (patch)
tree2311ac0d6e3f94ca4361d4e3891c19029cb1949a /tanh.c
parentc32d3fbe59a3bd3176fba023ef796d4cadf27b0f (diff)
downloadmpfr-ebfdb477d0d1a6d68ef8ed7654562716d1964eca.tar.gz
Replace __gmpfr_ceil_log2 by MPFR_INT_CEIL_LOG2 when possible.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3076 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tanh.c')
-rw-r--r--tanh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tanh.c b/tanh.c
index 0e0198728..a19f34efb 100644
--- a/tanh.c
+++ b/tanh.c
@@ -19,6 +19,7 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
+#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
/* The computation of cosh is done by
@@ -72,7 +73,7 @@ mpfr_tanh (mpfr_ptr y, mpfr_srcptr xt , mp_rnd_t rnd_mode)
/* Compute the precision of intermediary variable */
Nt = MAX (Nx, Ny);
/* The optimal number of bits: see algorithms.ps */
- Nt = Nt + /*__gmpfr_ceil_log2 (9)*/ 4 + __gmpfr_ceil_log2 (Nt);
+ Nt = Nt + /*MPFR_INT_CEIL_LOG2 (9)*/ 4 + MPFR_INT_CEIL_LOG2 (Nt);
/* initialise of intermediary variable */
mpfr_init2 (t, Nt);