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 /log2.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 'log2.c')
-rw-r--r-- | log2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,7 +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 r=log2(a) @@ -100,7 +100,7 @@ mpfr_log2 (mpfr_ptr r, mpfr_srcptr a, 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+3+__gmpfr_ceil_log2(Nt); + Nt=Nt + 3 + MPFR_INT_CEIL_LOG2 (Nt); /* initialise of intermediary variable */ mpfr_init(t); |