diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-04 09:27:48 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-04 09:27:48 +0000 |
commit | 150f2dcebabbb3eb7ef8833751a166e277aa0ebd (patch) | |
tree | fb461e4644e7b6c4edb7f0e5bdf9ef884091e0c5 /log10.c | |
parent | df41811f1ecf4f773defab58f3323368528ffa73 (diff) | |
download | mpfr-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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); |