diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-10-06 15:53:46 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-10-06 15:53:46 +0000 |
commit | 1bf291d11c8389ebdb657a645ff8da5758a6eee6 (patch) | |
tree | 20c889f09d2221c3b0a1f092e0ced95494767075 | |
parent | d495702c3ae3ab8d45147b9b647d988364206ce2 (diff) | |
download | mpfr-1bf291d11c8389ebdb657a645ff8da5758a6eee6.tar.gz |
replaced ABSSIZE by ESIZE (ABSSIZE is the allocated size, and should be
used only in functions init, set_prec, round_prec)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2480 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | add1.c | 4 | ||||
-rw-r--r-- | extract.c | 2 | ||||
-rw-r--r-- | get_si.c | 2 | ||||
-rw-r--r-- | get_ui.c | 2 |
4 files changed, 5 insertions, 5 deletions
@@ -61,14 +61,14 @@ mpfr_add1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, if (ap == bp) { bp = (mp_ptr) TMP_ALLOC (bn * BYTES_PER_MP_LIMB); - MPN_COPY (bp, ap, MPFR_ABSSIZE(b)); + MPN_COPY (bp, ap, bn); if (ap == cp) { cp = bp; } } else if (ap == cp) { cp = (mp_ptr) TMP_ALLOC (cn * BYTES_PER_MP_LIMB); - MPN_COPY(cp, ap, MPFR_ABSSIZE(c)); + MPN_COPY(cp, ap, cn); } exp = MPFR_GET_EXP (b); @@ -38,7 +38,7 @@ mpfr_extract (mpz_ptr y, mpfr_srcptr p, unsigned int i) { int two_i = 1 << i; int two_i_2 = i ? two_i / 2 : 1; - mp_size_t size_p = MPFR_ABSSIZE(p); + mp_size_t size_p = MPFR_ESIZE(p); /* as 0 <= |p| < 1, we don't have to care with infinities, NaN, ... */ @@ -48,7 +48,7 @@ mpfr_get_si (mpfr_srcptr f, mp_rnd_t rnd) /* now the result is in the most significant limb of x */ exp = MPFR_GET_EXP (x); /* since |x| >= 1, exp >= 1 */ - n = MPFR_ABSSIZE(x); + n = MPFR_ESIZE(x); s = MPFR_MANT(x)[n - 1] >> (GMP_NUMB_BITS - exp); mpfr_clear (x); @@ -48,7 +48,7 @@ mpfr_get_ui (mpfr_srcptr f, mp_rnd_t rnd) /* now the result is in the most significant limb of x */ exp = MPFR_GET_EXP (x); /* since |x| >= 1, exp >= 1 */ - n = MPFR_ABSSIZE(x); + n = MPFR_ESIZE(x); s = MPFR_MANT(x)[n - 1] >> (GMP_NUMB_BITS - exp); mpfr_clear (x); |