[Gmp-commit] /var/hg/gmp: 3 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Fri Oct 30 06:55:29 UTC 2015


details:   /var/hg/gmp/rev/a8713955935c
changeset: 16914:a8713955935c
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Fri Oct 30 07:54:20 2015 +0100
description:
mini-gmp/mini-gmp.c: Removed a typo (spotted by Paul)

details:   /var/hg/gmp/rev/80a4d6352d1d
changeset: 16915:80a4d6352d1d
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Fri Oct 30 07:54:52 2015 +0100
description:
dic/gmp.texi (Floating-point): Remove "infinite precision" claim.

details:   /var/hg/gmp/rev/82d2534721e3
changeset: 16916:82d2534721e3
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Fri Oct 30 07:55:19 2015 +0100
description:
ChangeLog

diffstat:

 ChangeLog           |   3 +++
 doc/gmp.texi        |  13 ++++++-------
 mini-gmp/mini-gmp.c |   2 +-
 3 files changed, 10 insertions(+), 8 deletions(-)

diffs (61 lines):

diff -r 3069e074a340 -r 82d2534721e3 ChangeLog
--- a/ChangeLog	Thu Oct 29 08:07:16 2015 +0100
+++ b/ChangeLog	Fri Oct 30 07:55:19 2015 +0100
@@ -4,6 +4,9 @@
 	* demos/perl/GMP.xs: Likewise.
 	* tests/mpf/t-pow_ui.c: Use reference value to check the size.
 
+	* mini-gmp/mini-gmp.c: Removed a typo (spotted by Paul Zimmermann).
+	* doc/gmp.texi (Floating-point): Remove "infinite precision" claim.
+
 	* gmp-h.in: Update version.
 
 2015-10-28  Torbjörn Granlund  <torbjorng at google.com>
diff -r 3069e074a340 -r 82d2534721e3 doc/gmp.texi
--- a/doc/gmp.texi	Thu Oct 29 08:07:16 2015 +0100
+++ b/doc/gmp.texi	Fri Oct 30 07:55:19 2015 +0100
@@ -4567,9 +4567,8 @@
 will be used in a calculation, even if the selected precision is high.
 
 All calculations are performed to the precision of the destination variable.
-Each function is defined to calculate with ``infinite precision'' followed by
-a truncation to the destination precision, but of course the work done is only
-what's needed to determine a result under that definition.
+Each function calculate with ``higher'' then truncate to the destination
+precision.
 
 The precision selected by the user for a variable is a minimum value, GMP may
 increase it to facilitate efficient calculation.  Currently this means
@@ -4585,16 +4584,16 @@
 
 The @code{mpf} functions and variables have no special notion of infinity or
 not-a-number, and applications must take care not to overflow the exponent or
-results will be unpredictable.  This might change in a future release.
+results will be unpredictable.
 
 Note that the @code{mpf} functions are @emph{not} intended as a smooth
 extension to IEEE P754 arithmetic.  In particular results obtained on one
 computer often differ from the results on a computer with a different word
 size.
 
-The GMP extension library MPFR (@url{http://mpfr.org}) is an alternative to
-GMP's @code{mpf} functions.  MPFR provides well-defined precision and accurate
-rounding, and thereby naturally extends IEEE P754.
+New projects should consider using the GMP extension library MPFR
+(@url{http://mpfr.org}) instead.  MPFR provides well-defined precision and
+accurate rounding, and thereby naturally extends IEEE P754.
 
 @menu
 * Initializing Floats::
diff -r 3069e074a340 -r 82d2534721e3 mini-gmp/mini-gmp.c
--- a/mini-gmp/mini-gmp.c	Thu Oct 29 08:07:16 2015 +0100
+++ b/mini-gmp/mini-gmp.c	Fri Oct 30 07:55:19 2015 +0100
@@ -269,7 +269,7 @@
   p = realloc (old, new_size);
 
   if (!p)
-    gmp_die("gmp_default_realoc: Virtual memory exhausted.");
+    gmp_die("gmp_default_realloc: Virtual memory exhausted.");
 
   return p;
 }


More information about the gmp-commit mailing list