diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-06 16:34:16 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-06 16:34:16 +0000 |
commit | f2dfd7d60c02b7ca46a6182ab21416fa52f9bf6c (patch) | |
tree | c82e77c4d6e937feadebe11f28137e570e74412d /NEWS | |
parent | 6872fdc006aaf96157958ade355eaa0c9d58080d (diff) | |
download | mpfr-f2dfd7d60c02b7ca46a6182ab21416fa52f9bf6c.tar.gz |
Cleanup and fixes for the mpz_t pool.
* Split src/free_cache.c to itself and a new source file src/pool.c
containing pool related code.
* src/mpfr-impl.h, src/pool.c: cleanup and fixes. In particular:
- renamed MPFR_MY_MPZ_INIT to MPFR_POOL_NENTRIES;
- no longer use GMP's symbols __gmpz_init, etc. directly;
- improved the condition for mpfr_mpz_init2;
- fixed the condition in mpfr_mpz_clear (we want to consider
the allocated size, not the size of the current number).
* src/Makefile.am: added pool.c.
* src/mpfr.h: added mpfr_free_pool prototype.
* doc/mpfr.texi: updated pool description in "Memory Handling";
new function mpfr_free_pool.
* doc/README.dev: update due to the rename of MPFR_MY_MPZ_INIT.
* NEWS: better announcement of the mpz_t pool.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11922 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -87,7 +87,10 @@ Changes from versions 3.1.* to version 4.0.0: - Old, deprecated macros mpfr_add_one_ulp and mpfr_sub_one_ulp removed. The mpfr_next* functions should be used instead. - Internally, improved caching: a minimum of 10% increase of the precision - is guaranteed to avoid too many recomputations; added mpz_t caching. + is guaranteed to avoid too many recomputations. +- Added internal small-precision mpz_t pool, which aims to avoid the + overhead of memory allocation, in particular. + New function mpfr_free_pool. - Added configure option --enable-assert=none to avoid checking any assertion. - The --enable-decimal-float configure option no longer requires --with-gmp-build, and support for decimal floats is now automatically |