diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-11-10 12:05:20 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-11-10 12:05:20 +0000 |
commit | ebfdb477d0d1a6d68ef8ed7654562716d1964eca (patch) | |
tree | 2311ac0d6e3f94ca4361d4e3891c19029cb1949a /log1p.c | |
parent | c32d3fbe59a3bd3176fba023ef796d4cadf27b0f (diff) | |
download | mpfr-ebfdb477d0d1a6d68ef8ed7654562716d1964eca.tar.gz |
Replace __gmpfr_ceil_log2 by MPFR_INT_CEIL_LOG2 when possible.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3076 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'log1p.c')
-rw-r--r-- | log1p.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 log1p is done by @@ -92,7 +93,7 @@ mpfr_log1p (mpfr_ptr y, mpfr_srcptr x, 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 + 5 + __gmpfr_ceil_log2 (Nt); + Nt = Nt + 5 + MPFR_INT_CEIL_LOG2 (Nt); /* initialise of intermediary variable */ mpfr_init (t); |