summaryrefslogtreecommitdiff
path: root/next.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-09-24 13:19:30 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-09-24 13:19:30 +0000
commitbb7884edf1b0bdffda39539c433c85b9dd90c41c (patch)
tree759e528c62b86187fb3c95f5f69b3fc4cbb3ea48 /next.c
parent58cef36c22f5f9d05f526f39ec55d26f71101022 (diff)
downloadmpfr-bb7884edf1b0bdffda39539c433c85b9dd90c41c.tar.gz
Added generic tests for mpfr_nextabove and mpfr_nextbelow.
Fixed a bug in next.c related to assertion checks. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2444 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'next.c')
-rw-r--r--next.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/next.c b/next.c
index 6d2a648f3..8ea52aa07 100644
--- a/next.c
+++ b/next.c
@@ -53,7 +53,7 @@ mpfr_nexttozero (mpfr_ptr x)
mpn_sub_1 (xp, xp, xn, MP_LIMB_T_ONE << sh);
if (xp[xn-1] >> (BITS_PER_MP_LIMB - 1) == 0)
{ /* was an exact power of two: not normalized any more */
- mp_exp_t exp = MPFR_GET_EXP (x);
+ mp_exp_t exp = MPFR_EXP (x);
if (exp == __gmpfr_emin)
MPFR_SET_ZERO(x);
else
@@ -87,7 +87,7 @@ mpfr_nexttoinf (mpfr_ptr x)
xp = MPFR_MANT(x);
if (mpn_add_1 (xp, xp, xn, MP_LIMB_T_ONE << sh)) /* got 1.0000... */
{
- mp_exp_t exp = MPFR_GET_EXP (x);
+ mp_exp_t exp = MPFR_EXP (x);
if (exp == __gmpfr_emax)
MPFR_SET_INF(x);
else