summaryrefslogtreecommitdiff
path: root/log10.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-04 09:27:48 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-04 09:27:48 +0000
commit150f2dcebabbb3eb7ef8833751a166e277aa0ebd (patch)
treefb461e4644e7b6c4edb7f0e5bdf9ef884091e0c5 /log10.c
parentdf41811f1ecf4f773defab58f3323368528ffa73 (diff)
downloadmpfr-150f2dcebabbb3eb7ef8833751a166e277aa0ebd.tar.gz
improved const_euler and eint
removed dependency from input precision in several functions fixed two bugs in pow (detection of exact cases) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3524 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'log10.c')
-rw-r--r--log10.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/log10.c b/log10.c
index 5f97708c3..fd8ff13a2 100644
--- a/log10.c
+++ b/log10.c
@@ -88,15 +88,13 @@ mpfr_log10 (mpfr_ptr r, mpfr_srcptr a, mp_rnd_t rnd_mode)
mpfr_t t, tt;
MPFR_ZIV_DECL (loop);
/* Declaration of the size variable */
- mp_prec_t Nx = MPFR_PREC(a); /* Precision of input variable */
mp_prec_t Ny = MPFR_PREC(r); /* Precision of output variable */
mp_prec_t Nt; /* Precision of the intermediary variable */
mp_exp_t err; /* Precision of error */
/* compute the precision of intermediary variable */
- Nt = MAX (Nx, Ny);
- /* the optimal number of bits : see algorithms.ps */
- Nt = Nt + 4+ MPFR_INT_CEIL_LOG2 (Nt);
+ /* the optimal number of bits : see algorithms.tex */
+ Nt = Ny + 4+ MPFR_INT_CEIL_LOG2 (Ny);
/* initialise of intermediary variables */
mpfr_init2 (t, Nt);