summaryrefslogtreecommitdiff
path: root/mpn_exp.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-18 15:57:10 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-18 15:57:10 +0000
commitb88c50d268e5e11da7c3363d421246dbb14bc180 (patch)
tree205a24fbfc48e8d135ec15b617d85335a673ad58 /mpn_exp.c
parente1bd5aef35c4619b29cf017d8128525d23bbdb56 (diff)
downloadmpfr-b88c50d268e5e11da7c3363d421246dbb14bc180.tar.gz
Replace TMP_ALLOC by MPFR_TMP_ALLOC
Replace TMP_DECL by MPFR_TMP_DECL Replace TMP_MARK by MPFR_TMP_MARK Replace TMP_FREE by MPFR_TMP_FREE Add support for GMP's TMP_SALLOC. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3593 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpn_exp.c')
-rw-r--r--mpn_exp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mpn_exp.c b/mpn_exp.c
index 5f4c5f731..0d325ea27 100644
--- a/mpn_exp.c
+++ b/mpn_exp.c
@@ -48,12 +48,12 @@ mpfr_mpn_exp (mp_limb_t *a, mp_exp_t *exp_r, int b, mp_exp_t e, size_t n)
/* error == t means no error */
int err_s_a2 = 0;
int err_s_ab = 0; /* number of error when shift A^2, AB */
- TMP_DECL(marker);
+ MPFR_TMP_DECL(marker);
MPFR_ASSERTN(e > 0);
MPFR_ASSERTN((2 <= b) && (b <= 36));
- TMP_MARK(marker);
+ MPFR_TMP_MARK(marker);
/* initialization of a, b, f, h */
@@ -67,7 +67,7 @@ mpfr_mpn_exp (mp_limb_t *a, mp_exp_t *exp_r, int b, mp_exp_t e, size_t n)
h = - h;
/* allocate space for A and set it to B */
- c = (mp_limb_t*) TMP_ALLOC(2 * n * BYTES_PER_MP_LIMB);
+ c = (mp_limb_t*) MPFR_TMP_ALLOC(2 * n * BYTES_PER_MP_LIMB);
a [n - 1] = B;
MPN_ZERO (a, n - 1);
/* initial exponent for A: invariant is A = {a, n} * 2^f */
@@ -98,7 +98,7 @@ mpfr_mpn_exp (mp_limb_t *a, mp_exp_t *exp_r, int b, mp_exp_t e, size_t n)
if (MPFR_UNLIKELY(f < MPFR_EXP_MIN/2 || f > MPFR_EXP_MAX/2))
{
overflow:
- TMP_FREE(marker);
+ MPFR_TMP_FREE(marker);
return -2;
}
/* FIXME: Could f = 2*f + n * BITS_PER_MP_LIMB be used? */
@@ -145,7 +145,7 @@ mpfr_mpn_exp (mp_limb_t *a, mp_exp_t *exp_r, int b, mp_exp_t e, size_t n)
}
}
- TMP_FREE(marker);
+ MPFR_TMP_FREE(marker);
*exp_r = f;