summaryrefslogtreecommitdiff
path: root/powerof2.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-12-01 10:25:01 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-12-01 10:25:01 +0000
commitb2f4e6bf9660bc322f5f1145d77d26ba41a153fd (patch)
tree91e6474e6397e7d7806a789a906109b728770109 /powerof2.c
parent2599eb53f9946b1879d0657098027d29bf191a28 (diff)
downloadmpfr-b2f4e6bf9660bc322f5f1145d77d26ba41a153fd.tar.gz
Port all the IEEE dependent remaining functions so that it uses a generic way to compute the result if it detects that the double is not in IEEE format ( _GMP_IEEE_FLOATS == 0).
MPFR now should work well on non-IEEE machines. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2567 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 f4bf0d3c6..f549fdfa3 100644
--- a/powerof2.c
+++ b/powerof2.c
@@ -32,7 +32,7 @@ mpfr_powerof2_raw (mpfr_srcptr x)
mp_limb_t *xp;
mp_size_t xn;
- MPFR_ASSERTN(MPFR_IS_FP(x));
+ MPFR_ASSERTN(MPFR_IS_PURE_FP(x));
xp = MPFR_MANT(x);
xn = (MPFR_PREC(x) - 1) / BITS_PER_MP_LIMB;
if (NOT_POW2(xp[xn]))