diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-08-16 09:05:15 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-08-16 09:05:15 +0000 |
commit | a5dc53c8d3acf9f0a7ec38895df3d6676845b162 (patch) | |
tree | 8c1545e2cae10aaa5afac38683f352ed6aadbebc /set_si.c | |
parent | f322bdb378f55d02a41a5d73f3a467d201f74741 (diff) | |
download | mpfr-a5dc53c8d3acf9f0a7ec38895df3d6676845b162.tar.gz |
replaced mp_bits_per_limb by BITS_PER_MP_LIMB (constant)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@701 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_si.c')
-rw-r--r-- | set_si.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -51,8 +51,8 @@ mpfr_set_si(x, i, rnd_mode) EXP(x) = BITS_PER_MP_LIMB - cnt; /* round if PREC(x) smaller than length of i */ - if (PREC(x) < mp_bits_per_limb-cnt) { - cnt = mpfr_round_raw(xp+xn, xp+xn, mp_bits_per_limb-cnt, (ai<0), PREC(x), + if (PREC(x) < BITS_PER_MP_LIMB-cnt) { + cnt = mpfr_round_raw(xp+xn, xp+xn, BITS_PER_MP_LIMB-cnt, (ai<0), PREC(x), rnd_mode); if (cnt) { /* special case 1.000...000 */ EXP(x)++; @@ -90,8 +90,8 @@ mpfr_set_ui(x, i, rnd_mode) EXP(x) = BITS_PER_MP_LIMB - cnt; /* round if PREC(x) smaller than length of i */ - if (PREC(x) < mp_bits_per_limb-cnt) { - cnt = mpfr_round_raw(xp+xn, xp+xn, mp_bits_per_limb-cnt, 0, PREC(x), + if (PREC(x) < BITS_PER_MP_LIMB-cnt) { + cnt = mpfr_round_raw(xp+xn, xp+xn, BITS_PER_MP_LIMB-cnt, 0, PREC(x), rnd_mode); if (cnt) { /* special case 1.000...000 */ EXP(x)++; |