[Gmp-commit] /var/hg/gmp: 3 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Mon Dec 17 11:23:02 CET 2012
details: /var/hg/gmp/rev/81527ca832bc
changeset: 15196:81527ca832bc
user: Torbjorn Granlund <tege at gmplib.org>
date: Mon Dec 17 11:19:46 2012 +0100
description:
>From Marco: Fix typos in an ASSERT.
details: /var/hg/gmp/rev/dfe4df1e6540
changeset: 15197:dfe4df1e6540
user: Torbjorn Granlund <tege at gmplib.org>
date: Mon Dec 17 11:20:06 2012 +0100
description:
ChangeLog.
details: /var/hg/gmp/rev/059fb4bdd120
changeset: 15198:059fb4bdd120
user: Torbjorn Granlund <tege at gmplib.org>
date: Mon Dec 17 11:23:00 2012 +0100
description:
Trivial merge.
diffstat:
AUTHORS | 2 ++
ChangeLog | 10 ++++++++--
doc/gmp.texi | 8 ++++++++
mpz/n_pow_ui.c | 2 +-
4 files changed, 19 insertions(+), 3 deletions(-)
diffs (58 lines):
diff -r 492083cc51c1 -r 059fb4bdd120 AUTHORS
--- a/AUTHORS Sun Dec 16 12:21:39 2012 +0100
+++ b/AUTHORS Mon Dec 17 11:23:00 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 492083cc51c1 -r 059fb4bdd120 ChangeLog
--- a/ChangeLog Sun Dec 16 12:21:39 2012 +0100
+++ b/ChangeLog Mon Dec 17 11:23:00 2012 +0100
@@ -1,7 +1,13 @@
+2012-12-17 Torbjorn Granlund <tege at gmplib.org>
+
+ * Version 5.1.0 released.
+
+2012-12-17 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+ * mpz/n_pow_ui.c: Fix typos in an ASSERT.
+
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.
diff -r 492083cc51c1 -r 059fb4bdd120 doc/gmp.texi
--- a/doc/gmp.texi Sun Dec 16 12:21:39 2012 +0100
+++ b/doc/gmp.texi Mon Dec 17 11:23:00 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 492083cc51c1 -r 059fb4bdd120 mpz/n_pow_ui.c
--- a/mpz/n_pow_ui.c Sun Dec 16 12:21:39 2012 +0100
+++ b/mpz/n_pow_ui.c Mon Dec 17 11:23:00 2012 +0100
@@ -167,7 +167,7 @@
mpn_trace ("b", bp, bsize));
ASSERT (bsize == 0 || bp[ABS(bsize)-1] != 0);
- ASSERT (MPN_SAME_OR_SEPARATE2_P (PTR(r), ABSIZ(r), bp, bsize));
+ ASSERT (MPN_SAME_OR_SEPARATE2_P (PTR(r), ALLOC(r), bp, ABS(bsize)));
/* b^0 == 1, including 0^0 == 1 */
if (e == 0)
More information about the gmp-commit
mailing list