diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 21:36:26 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 21:36:26 +0000 |
commit | e77ab9365d2b9771c80e851ddc63dda142613188 (patch) | |
tree | 70f1d98c129b9f3ffda65d5d5b690cbe3e19e836 /sub_ui.c | |
parent | fbc1bcfac594b04268c66729bf4a023910be578a (diff) | |
download | mpfr-e77ab9365d2b9771c80e851ddc63dda142613188.tar.gz |
Replaced GMP_LIMB_BITS by GMP_NUMB_BITS to use only one of these macros.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6646 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sub_ui.c')
-rw-r--r-- | sub_ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ mpfr_sub_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode MPFR_SAVE_EXPO_DECL (expo); - MPFR_TMP_INIT1 (up, uu, GMP_LIMB_BITS); + MPFR_TMP_INIT1 (up, uu, GMP_NUMB_BITS); MPFR_ASSERTN (u == (mp_limb_t) u); count_leading_zeros (cnt, (mp_limb_t) u); *up = (mp_limb_t) u << cnt; @@ -44,7 +44,7 @@ mpfr_sub_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode /* Optimization note: Exponent save/restore operations may be removed if mpfr_sub works even when uu is out-of-range. */ MPFR_SAVE_EXPO_MARK (expo); - MPFR_SET_EXP (uu, GMP_LIMB_BITS - cnt); + MPFR_SET_EXP (uu, GMP_NUMB_BITS - cnt); inex = mpfr_sub (y, x, uu, rnd_mode); MPFR_SAVE_EXPO_FREE (expo); return mpfr_check_range (y, inex, rnd_mode); |