diff options
Diffstat (limited to 'pow_si.c')
-rw-r--r-- | pow_si.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 (); |