summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-10-06 15:53:46 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-10-06 15:53:46 +0000
commit1bf291d11c8389ebdb657a645ff8da5758a6eee6 (patch)
tree20c889f09d2221c3b0a1f092e0ced95494767075
parentd495702c3ae3ab8d45147b9b647d988364206ce2 (diff)
downloadmpfr-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.c4
-rw-r--r--extract.c2
-rw-r--r--get_si.c2
-rw-r--r--get_ui.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/add1.c b/add1.c
index d81c4ccf5..623bc45a9 100644
--- a/add1.c
+++ b/add1.c
@@ -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);
diff --git a/extract.c b/extract.c
index c18024eb9..b2e43f4fa 100644
--- a/extract.c
+++ b/extract.c
@@ -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, ... */
diff --git a/get_si.c b/get_si.c
index d1e5bf1d1..cf7535abe 100644
--- a/get_si.c
+++ b/get_si.c
@@ -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);
diff --git a/get_ui.c b/get_ui.c
index 7373b4f09..90239bab9 100644
--- a/get_ui.c
+++ b/get_ui.c
@@ -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);