summaryrefslogtreecommitdiff
path: root/src/add1.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-06-25 12:02:19 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-06-25 12:02:19 +0000
commit4fc658f4c030cdf8550bcf1a308df660ce617aae (patch)
treec125157a0790fc3733507da60ef550c31c861076 /src/add1.c
parent6c399d91a25032e34a4609422757c83d7e7fcf07 (diff)
downloadmpfr-4fc658f4c030cdf8550bcf1a308df660ce617aae.tar.gz
Code clean-up:
* Simplified the definition of simple mp_limb_t constants: it is better to avoid GMP internals when there is a standard way. * Replaced the use of MP_LIMB_T_MAX by the new macro MPFR_LIMB_MAX. * So, removed the now useless MP_LIMB_T_MAX and GMP_LIMB_HIGHBIT definitions from "mpfr-gmp.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9090 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/add1.c')
-rw-r--r--src/add1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/add1.c b/src/add1.c
index f5b3b5154..6e7f21402 100644
--- a/src/add1.c
+++ b/src/add1.c
@@ -234,7 +234,7 @@ mpfr_add1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
MPFR_ASSERTD(fb != 0);
if (fb > 0)
{
- if (bb != MP_LIMB_T_MAX)
+ if (bb != MPFR_LIMB_MAX)
{
fb = 1; /* c hasn't been taken into account
==> sticky bit != 0 */
@@ -249,7 +249,7 @@ mpfr_add1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
bb |= MPFR_LIMB_HIGHBIT;
}
fb = 1;
- if (bb != MP_LIMB_T_MAX)
+ if (bb != MPFR_LIMB_MAX)
goto rounding;
}
@@ -318,7 +318,7 @@ mpfr_add1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
}
fb = bb != 0;
- if (fb && bb != MP_LIMB_T_MAX)
+ if (fb && bb != MPFR_LIMB_MAX)
goto rounding;
} /* fb < 0 */
@@ -368,7 +368,7 @@ mpfr_add1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
fb = 1;
goto rounding;
}
- if (fb && bb != MP_LIMB_T_MAX)
+ if (fb && bb != MPFR_LIMB_MAX)
goto rounding;
} /* while */