summaryrefslogtreecommitdiff
path: root/powerof2.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2010-01-08 19:13:48 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2010-01-08 19:13:48 +0000
commit1f7f06d17a7f5bacaa40d8cea4237ffe094ef433 (patch)
tree97fdc324d0ae9640c439df546f625d8a15ad50fe /powerof2.c
parent8f36df5d6bf5f20f4c4e60e9ac22e9d4d4a6508e (diff)
downloadmpfr-1f7f06d17a7f5bacaa40d8cea4237ffe094ef433.tar.gz
BITS_PER_MP_LIMB -> GMP_LIMB_BITS
got rid of BYTES_PER_MP_LIMB in configure.in (no longer defined by GMP) Note[VL] (mpfr-impl.h): a mpn_sqr_n() macro is defined to use mpn_mul if it is not already defined (in gmp-impl.h from GMP 4.x). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6644 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'powerof2.c')
-rw-r--r--powerof2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerof2.c b/powerof2.c
index bae77cdc5..e2cd4549d 100644
--- a/powerof2.c
+++ b/powerof2.c
@@ -35,7 +35,7 @@ mpfr_powerof2_raw (mpfr_srcptr x)
So we don't want to test if it is a pure FP.
MPFR_ASSERTN(MPFR_IS_PURE_FP(x)); */
xp = MPFR_MANT(x);
- xn = (MPFR_PREC(x) - 1) / BITS_PER_MP_LIMB;
+ xn = (MPFR_PREC(x) - 1) / GMP_LIMB_BITS;
/*if (NOT_POW2(xp[xn]))*/
if (xp[xn] != MPFR_LIMB_HIGHBIT)
return 0;