summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-10-27 15:15:04 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-10-27 15:15:04 +0000
commit734c0a144b04e2cae4e67b394010e3f6e3cadecc (patch)
treee0bb801e56a43c3aebe1ad73851ede3588e082fb /log.c
parenta7f45009dff2e3d0e8698b44e45f5cacacb82cdd (diff)
downloadmpfr-734c0a144b04e2cae4e67b394010e3f6e3cadecc.tar.gz
Change the internal format of MPFR: ZERO, INF and NAN have special values of exp.
Rename MPFR_ESIZE in MPFR_LIMB_SIZE. Rename MPFR_ABSZISE in MPFR_ALLOC_SIZE. Rename MPFR_INIT in MPFR_TMP_INIT (INIT1 too). "mpfr.h" includes <gmp.h> if GMP isn't detected. Change the way of detecting stdio.h (To check). Use mpfr namespace for new definitions in "mpfr.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2524 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'log.c')
-rw-r--r--log.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/log.c b/log.c
index 9904ab08f..f92eca156 100644
--- a/log.c
+++ b/log.c
@@ -126,13 +126,13 @@ mpfr_log (mpfr_ptr r, mpfr_srcptr a, mp_rnd_t rnd_mode)
/* All the mpfr_t needed have a precision of p */
TMP_MARK(marker);
size=(p-1)/BITS_PER_MP_LIMB+1;
- MPFR_INIT(cstp, cst, p, size);
- MPFR_INIT(rapportp, rapport, p, size);
- MPFR_INIT(agmp, agm, p, size);
- MPFR_INIT(tmp1p, tmp1, p, size);
- MPFR_INIT(tmp2p, tmp2, p, size);
- MPFR_INIT(sp, s, p, size);
- MPFR_INIT(mmp, mm, p, size);
+ MPFR_TMP_INIT(cstp, cst, p, size);
+ MPFR_TMP_INIT(rapportp, rapport, p, size);
+ MPFR_TMP_INIT(agmp, agm, p, size);
+ MPFR_TMP_INIT(tmp1p, tmp1, p, size);
+ MPFR_TMP_INIT(tmp2p, tmp2, p, size);
+ MPFR_TMP_INIT(sp, s, p, size);
+ MPFR_TMP_INIT(mmp, mm, p, size);
mpfr_set_si (mm, m, GMP_RNDN); /* I have m, supposed exact */
mpfr_set_si (tmp1, 1, GMP_RNDN); /* I have 1, exact */