From ebfdb477d0d1a6d68ef8ed7654562716d1964eca Mon Sep 17 00:00:00 2001 From: pelissip Date: Wed, 10 Nov 2004 12:05:20 +0000 Subject: 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 --- log1p.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'log1p.c') diff --git a/log1p.c b/log1p.c index 925911cd0..400f9b590 100644 --- a/log1p.c +++ b/log1p.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 log1p is done by @@ -92,7 +93,7 @@ mpfr_log1p (mpfr_ptr y, mpfr_srcptr x, 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 + 5 + __gmpfr_ceil_log2 (Nt); + Nt = Nt + 5 + MPFR_INT_CEIL_LOG2 (Nt); /* initialise of intermediary variable */ mpfr_init (t); -- cgit v1.2.1