diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-09-24 13:19:30 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-09-24 13:19:30 +0000 |
commit | bb7884edf1b0bdffda39539c433c85b9dd90c41c (patch) | |
tree | 759e528c62b86187fb3c95f5f69b3fc4cbb3ea48 /next.c | |
parent | 58cef36c22f5f9d05f526f39ec55d26f71101022 (diff) | |
download | mpfr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |