summaryrefslogtreecommitdiff
path: root/pow.c
diff options
context:
space:
mode:
Diffstat (limited to 'pow.c')
-rw-r--r--pow.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pow.c b/pow.c
index 9d330476b..edc991713 100644
--- a/pow.c
+++ b/pow.c
@@ -19,8 +19,6 @@ 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. */
-#include <stdio.h>
-#include <math.h>
#include "gmp.h"
#include "gmp-impl.h"
#include "mpfr.h"
@@ -258,7 +256,7 @@ mpfr_pow (z, x, y, rnd_mode)
mpfr_exp(t,te,GMP_RNDN); /* exp(x*ln(n))*/
/* estimation of the error -- see pow function in algorithms.ps*/
- err = Nt - _mpfr_ceil_log2(1+pow(2,MPFR_EXP(te)+2));
+ err = Nt - (MPFR_EXP(te)+3);
/* actualisation of the precision */
Nt += 10;