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

mercurial at gmplib.org mercurial at gmplib.org
Sun Dec 16 13:02:59 CET 2012


details:   /var/hg/gmp/rev/8439e88b1168
changeset: 15193:8439e88b1168
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Dec 16 12:21:16 2012 +0100
description:
(mpn_preinv_mu_div_qr): Explicitly use MPN_COPY_INCR for slightly overlapping copy.

details:   /var/hg/gmp/rev/492083cc51c1
changeset: 15194:492083cc51c1
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Dec 16 12:21:39 2012 +0100
description:
ChangeLog

details:   /var/hg/gmp/rev/957f1b042b03
changeset: 15195:957f1b042b03
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Dec 16 13:02:56 2012 +0100
description:
Trivial merge.

diffstat:

 AUTHORS                 |  2 ++
 ChangeLog               |  9 +++++++--
 doc/gmp.texi            |  8 ++++++++
 mpn/generic/mu_div_qr.c |  2 +-
 4 files changed, 18 insertions(+), 3 deletions(-)

diffs (61 lines):

diff -r 116ed1b73613 -r 957f1b042b03 AUTHORS
--- a/AUTHORS	Sat Dec 15 17:12:49 2012 +0100
+++ b/AUTHORS	Sun Dec 16 13:02:56 2012 +0100
@@ -75,3 +75,5 @@
 			mpn/x86_64/core2/aors_err1_n.asm.
 
 Martin Boij		mpn/generic/perfpow.c
+
+Marc Glisse		gmpxx.h improvements
diff -r 116ed1b73613 -r 957f1b042b03 ChangeLog
--- a/ChangeLog	Sat Dec 15 17:12:49 2012 +0100
+++ b/ChangeLog	Sun Dec 16 13:02:56 2012 +0100
@@ -1,11 +1,16 @@
+2012-12-16  Torbjorn Granlund  <tege at gmplib.org>
+
+	* Version 5.1.0 released.
+
+	* mpn/generic/mu_div_qr.c (mpn_preinv_mu_div_qr): Explicitly use
+	MPN_COPY_INCR for slightly overlapping copy.
+
 2012-12-15 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* tests/mpn/toom-sqr-shared.h: Skip ALLOCs if the test is skipped.
 
 2012-12-13  Torbjorn Granlund  <tege at gmplib.org>
 
-	* Version 5.1.0 released.
-
 	* mpn/x86_64/dos64.m4 (PIC): Move definition early.
 	(JMPENT): Remove PIC variant.
 
diff -r 116ed1b73613 -r 957f1b042b03 doc/gmp.texi
--- a/doc/gmp.texi	Sat Dec 15 17:12:49 2012 +0100
+++ b/doc/gmp.texi	Sun Dec 16 13:02:56 2012 +0100
@@ -10395,6 +10395,14 @@
 
 Martin Boij wrote @code{mpn_perfect_power_p}.
 
+Marc Glisse improved @file{gmpxx.h}: use fewer temporaries (faster),
+specializations of @code{numeric_limits} and @code{common_type}, C++11
+features (move constructors, explicit bool conversion, UDL), make the
+conversion from @code{mpq_class} to @code{mpz_class} explicit, optimize
+operations where one argument is a small compile-time constant, replace
+some heap allocations by stack allocations.  He also fixed the eofbit
+handling of C++ streams, and removed one division from @file{mpq/aors.c}.
+
 (This list is chronological, not ordered after significance.  If you have
 contributed to GMP but are not listed above, please tell
 @email{gmp-devel@@gmplib.org} about the omission!)
diff -r 116ed1b73613 -r 957f1b042b03 mpn/generic/mu_div_qr.c
--- a/mpn/generic/mu_div_qr.c	Sat Dec 15 17:12:49 2012 +0100
+++ b/mpn/generic/mu_div_qr.c	Sun Dec 16 13:02:56 2012 +0100
@@ -247,7 +247,7 @@
   if (qh != 0)
     mpn_sub_n (rp, np, dp, dn);
   else
-    MPN_COPY (rp, np, dn);
+    MPN_COPY_INCR (rp, np, dn);
 
   if (qn == 0)
     return qh;			/* Degenerate use.  Should we allow this? */


More information about the gmp-commit mailing list