summaryrefslogtreecommitdiff
path: root/pow.c
diff options
context:
space:
mode:
authordaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 12:52:55 +0000
committerdaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 12:52:55 +0000
commit0bb691cc83e27282f8a49707adb8c4083bf30998 (patch)
treef9bd4e62f584bf3d7fdbf057589381cc3159d603 /pow.c
parent8d2d43eb37df5e09012218b70a5d69496c6942e6 (diff)
downloadmpfr-0bb691cc83e27282f8a49707adb8c4083bf30998.tar.gz
remove stdio math .h
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1542 280ebfd0-de03-0410-8827-d642c229c3f4
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;