[Gmp-commit] /var/hg/gmp: 6 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Thu Apr 28 21:20:58 CEST 2011
details: /var/hg/gmp/rev/457142511d4c
changeset: 14139:457142511d4c
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Apr 28 12:15:44 2011 +0200
description:
Fix a typo.
details: /var/hg/gmp/rev/db51bc48e659
changeset: 14140:db51bc48e659
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Apr 28 20:34:55 2011 +0200
description:
Whitespace cleanup.
details: /var/hg/gmp/rev/a3a5aa61d185
changeset: 14141:a3a5aa61d185
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Apr 28 21:11:30 2011 +0200
description:
(x86_64): Support bobcat specifically.
(x86): Match bobcat and bulldozer, handle like k10.
details: /var/hg/gmp/rev/f343fe189310
changeset: 14142:f343fe189310
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Apr 28 21:12:10 2011 +0200
description:
Add comment.
details: /var/hg/gmp/rev/bef11c0bdf45
changeset: 14143:bef11c0bdf45
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Apr 28 21:14:58 2011 +0200
description:
Mention benign out-of-bounds read in Valgrind context.
details: /var/hg/gmp/rev/e415718349b4
changeset: 14144:e415718349b4
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Apr 28 21:20:55 2011 +0200
description:
Trivial merge.
diffstat:
ChangeLog | 4 ++++
README.HG | 6 +++---
configure.in | 6 ++++--
doc/gmp.texi | 5 +++++
mpn/asm-defs.m4 | 2 +-
mpn/sparc32/sparc-defs.m4 | 2 +-
tests/mpn/t-div.c | 8 ++++----
7 files changed, 22 insertions(+), 11 deletions(-)
diffs (131 lines):
diff -r 12325856c8ac -r e415718349b4 ChangeLog
--- a/ChangeLog Wed Apr 27 19:16:59 2011 +0200
+++ b/ChangeLog Thu Apr 28 21:20:55 2011 +0200
@@ -1,3 +1,7 @@
+2011-04-28 David Harvey <dmharvey at cims.nyu.edu>
+
+ * README.HG: update autotools version numbers.
+
2011-04-27 Torbjorn Granlund <tege at gmplib.org>
* tune/speed.h (speed_cyclecounter): Always use PIC variant when
diff -r 12325856c8ac -r e415718349b4 README.HG
--- a/README.HG Wed Apr 27 19:16:59 2011 +0200
+++ b/README.HG Thu Apr 28 21:20:55 2011 +0200
@@ -2,11 +2,11 @@
usual ./configure && make is not sufficient to build the sources. You
need to have the following extra tools installed:
-* autoconf-2.59
+* autoconf-2.65
-* automake-1.8.4
+* automake-1.11.1
-* libtool-1.5.24
+* libtool-2.2.6b
Later versions of these tools may work as well. Then the following
steps are needed:
diff -r 12325856c8ac -r e415718349b4 configure.in
--- a/configure.in Wed Apr 27 19:16:59 2011 +0200
+++ b/configure.in Thu Apr 28 21:20:55 2011 +0200
@@ -1495,7 +1495,7 @@
geode) path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
# we don't have any specific 32-bit code for athlon64/opteron, the
# athlon code should be reasonable
- athlon | athlon64 | k8 | k10)
+ athlon | athlon64 | k8 | k10 | bobcat | bulldozer)
path="x86/k7/mmx x86/k7 x86" ;;
i786 | pentium4) path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" ;;
# VIA/Centaur processors, sold as CyrixIII and C3.
@@ -1520,10 +1520,12 @@
case $host_cpu in
x86_64)
;;
- k10 | bobcat | bulldozer)
+ k10 | bulldozer)
path_64="x86_64/k10 x86_64/k8 $path_64" ;;
athlon64 | k8)
path_64="x86_64/k8 $path_64" ;;
+ bobcat)
+ path_64="x86_64/bobcat x86_64/k10 x86_64/k8 $path_64" ;;
pentium4)
path_64="x86_64/pentium4 $path_64" ;;
core2)
diff -r 12325856c8ac -r e415718349b4 doc/gmp.texi
--- a/doc/gmp.texi Wed Apr 27 19:16:59 2011 +0200
+++ b/doc/gmp.texi Thu Apr 28 21:20:55 2011 +0200
@@ -2657,6 +2657,11 @@
instructions, for past versions GMP will need to be configured not to use
those, ie.@: for an x86 without them (for instance plain @samp{i486}).
+GMP's assembly code sometimes promotes a read of the limbs to some larger size,
+for efficiency. GMP will do this even at the start and end of a multilimb
+operand, using naturaly aligned operations on the larger type. This may lead
+to benign reads outside of allocated areas, triggering complants from Valgrind.
+
@item Other Problems
Any suspected bug in GMP itself should be isolated to make sure it's not an
application problem, see @ref{Reporting Bugs}.
diff -r 12325856c8ac -r e415718349b4 mpn/asm-defs.m4
--- a/mpn/asm-defs.m4 Wed Apr 27 19:16:59 2011 +0200
+++ b/mpn/asm-defs.m4 Thu Apr 28 21:20:55 2011 +0200
@@ -867,7 +867,7 @@
dnl Called: deflit_emptyargcheck(macroname,$#,`$1')
define(deflit_emptyargcheck,
`ifelse(eval($2==1 && !m4_dollarhash_1_if_noparen_p && m4_length(`$3')==0),1,
-`m4_error(`dont use a deflit as $1() because it loses the brackets (see deflit in asm-incl.m4 for more information)
+`m4_error(`dont use a deflit as $1() because it loses the brackets (see deflit in asm-defs.m4 for more information)
')')')
diff -r 12325856c8ac -r e415718349b4 mpn/sparc32/sparc-defs.m4
--- a/mpn/sparc32/sparc-defs.m4 Wed Apr 27 19:16:59 2011 +0200
+++ b/mpn/sparc32/sparc-defs.m4 Thu Apr 28 21:20:55 2011 +0200
@@ -21,7 +21,7 @@
dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
-changecom(;)
+changecom(;) dnl cannot use default # since that's used in REGISTER decls
dnl Usage: REGISTER(reg,attr)
diff -r 12325856c8ac -r e415718349b4 tests/mpn/t-div.c
--- a/tests/mpn/t-div.c Wed Apr 27 19:16:59 2011 +0200
+++ b/tests/mpn/t-div.c Thu Apr 28 21:20:55 2011 +0200
@@ -417,7 +417,7 @@
/* mpn_divrem_2 */
MPN_COPY (rp, np, nn);
qp[nn - 2] = qp[nn-1] = qran1;
-
+
qh = mpn_divrem_2 (qp, 0, rp, nn, dp + dn - 2);
ASSERT_ALWAYS (qp[nn - 2] == qran1);
ASSERT_ALWAYS (qp[-1] == qran0); ASSERT_ALWAYS (qp[nn - 1] == qran1);
@@ -429,7 +429,7 @@
/* mpn_div_qr_2 (normalized) */
qp[nn - 2] = qran1;
-
+
qh = mpn_div_qr_2 (qp, rp, np, nn, dp + dn - 2);
ASSERT_ALWAYS (qp[nn - 2] == qran1);
ASSERT_ALWAYS (qp[-1] == qran0); ASSERT_ALWAYS (qp[nn - 1] == qran1);
@@ -443,13 +443,13 @@
continue;
qp[nn - 2] = qran1;
-
+
qh = mpn_div_qr_2 (qp, rp, np, nn, dp + dn - 2);
ASSERT_ALWAYS (qp[nn - 2] == qran1);
ASSERT_ALWAYS (qp[-1] == qran0); ASSERT_ALWAYS (qp[nn - 1] == qran1);
qp[nn - 2] = qh;
- check_one (qp, rp, np, nn, dp + dn - 2, 2, "mpn_div_qr_2 (unnormalized)", 0);
+ check_one (qp, rp, np, nn, dp + dn - 2, 2, "mpn_div_qr_2 (unnormalized)", 0);
qp[nn - dn + 1] = qran1;
}
More information about the gmp-commit
mailing list