summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-12-16 14:30:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-12-16 14:30:01 +0000
commit55b7cad09cb83135f1faeade157286fa1cdea973 (patch)
treee142bb9d124eee61820dc54761fb0a60244b2f3f
parent69b9d73ac3773d99b5ec43d724731b1781669bd5 (diff)
downloadmpfr-55b7cad09cb83135f1faeade157286fa1cdea973.tar.gz
[NEWS] Added an item about improved caching.
[NEWS,doc/mpfr.texi] In particular, mention the minimum of 10% increase of the precision (done in r8967). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9254 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--NEWS3
-rw-r--r--doc/mpfr.texi3
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 38f2e59f4..e1b666d0e 100644
--- a/NEWS
+++ b/NEWS
@@ -41,6 +41,9 @@ Changes from versions 3.1.* to version 3.2.0:
yield undefined behavior in some cases (this modifies both the API and
the ABI).
- Function mpfr_grandom is deprecated and will be removed in a future release.
+- Internally, improved caching: a minimum of 10% increase of the precision
+ is guaranteed to avoid too many recomputations; added mpz_t caching.
+ [TODO: add shared caches; note that the ABI can be changed.]
- Added configure option --enable-assert=none to avoid checking any assertion.
- The --enable-decimal-float configure option no longer requires
--with-gmp-build.
diff --git a/doc/mpfr.texi b/doc/mpfr.texi
index 2326a693b..ce30dbd6d 100644
--- a/doc/mpfr.texi
+++ b/doc/mpfr.texi
@@ -923,6 +923,9 @@ MPFR functions may create caches, e.g., when computing constants such
as @m{\pi,Pi}, either because the user has called a function like
@code{mpfr_const_pi} directly or because such a function was called
internally by the MPFR library itself to compute some other function.
+When more precision is needed, the value is automatically recomputed;
+a minimum of 10% increase of the precision is guaranteed to avoid too
+many recomputations.
At any time, the user can free the various caches with
@code{mpfr_free_cache}. It is strongly advised to do that before