summaryrefslogtreecommitdiff
path: root/pow_si.c
diff options
context:
space:
mode:
Diffstat (limited to 'pow_si.c')
-rw-r--r--pow_si.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pow_si.c b/pow_si.c
index 1d170eaed..fe130c14d 100644
--- a/pow_si.c
+++ b/pow_si.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 y=pow(x,z) is done by
@@ -92,7 +93,7 @@ mpfr_pow_si (mpfr_ptr y, mpfr_srcptr x, long int n, 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 + 3 + __gmpfr_ceil_log2 (Nt);
+ Nt = Nt + 3 + MPFR_INT_CEIL_LOG2 (Nt);
mpfr_save_emin_emax ();