[Gmp-commit] /var/hg/gmp-5.0: 6 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Sat Apr 30 14:33:35 CEST 2011
details: /var/hg/gmp-5.0/rev/e928c0515399
changeset: 13453:e928c0515399
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Apr 30 12:00:17 2011 +0200
description:
(GMP_ASM_RODATA): Make 'foo' larger to avoid clang problems.
details: /var/hg/gmp-5.0/rev/0522679a82ca
changeset: 13454:0522679a82ca
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Apr 30 12:03:34 2011 +0200
description:
*** empty log message ***
details: /var/hg/gmp-5.0/rev/ad7195ce80b4
changeset: 13455:ad7195ce80b4
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Apr 30 12:30:53 2011 +0200
description:
Bring in select changes from mainline repo.
details: /var/hg/gmp-5.0/rev/bb7ce13df4e0
changeset: 13456:bb7ce13df4e0
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Apr 30 12:42:18 2011 +0200
description:
Use powerpc syntax, not power syntax.
details: /var/hg/gmp-5.0/rev/0ed53f72820c
changeset: 13457:0ed53f72820c
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Apr 30 14:33:18 2011 +0200
description:
Add a MULFUNC_PROLOGUE.
details: /var/hg/gmp-5.0/rev/f932f9097eef
changeset: 13458:f932f9097eef
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Apr 30 14:33:26 2011 +0200
description:
*** empty log message ***
diffstat:
ChangeLog | 14 +++++++++
acinclude.m4 | 3 +-
doc/gmp.texi | 61 ++++++++++++++++++++++++++-------------
mpn/x86_64/core2/popcount.asm | 1 +
mpn/x86_64/pentium4/popcount.asm | 1 +
tune/powerpc.asm | 2 +-
6 files changed, 59 insertions(+), 23 deletions(-)
diffs (220 lines):
diff -r a9403b57e50d -r f932f9097eef ChangeLog
--- a/ChangeLog Sat Apr 30 11:45:32 2011 +0200
+++ b/ChangeLog Sat Apr 30 14:33:26 2011 +0200
@@ -3,6 +3,11 @@
* tune/speed.h (speed_cyclecounter): Always use PIC variant when
compiled with Apple's GCC.
+2011-04-10 Torbjorn Granlund <tege at gmplib.org>
+
+ * acinclude.m4 (GMP_ASM_RODATA): Make 'foo' larger to avoid clang
+ problems.
+
2011-03-28 Torbjorn Granlund <tege at gmplib.org>
* mpn/x86/invert_limb.asm: Protect movzwl register parameters from
@@ -17,6 +22,15 @@
* mpn/generic/toom_interpolate_16pts.c: Remove ambiguity.
+2011-03-12 Torbjorn Granlund <tege at gmplib.org>
+
+ * tune/powerpc.asm: Use powerpc syntax, not power syntax.
+
+2011-02-04 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpn/x86_64/core2/popcount.asm: Add a MULFUNC_PROLOGUE.
+ * mpn/x86_64/pentium4/popcount.asm: Likewise.
+
2011-01-25 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mpz/mul.c: Remove redundant size computation.
diff -r a9403b57e50d -r f932f9097eef acinclude.m4
--- a/acinclude.m4 Sat Apr 30 11:45:32 2011 +0200
+++ b/acinclude.m4 Sat Apr 30 14:33:26 2011 +0200
@@ -1941,7 +1941,8 @@
esac
cat >conftest.c <<EOF
-const int foo = 123;
+extern const int foo[]; /* Suppresses C++'s suppression of foo */
+const int foo[] = {1,2,3};
EOF
echo "Test program:" >&AC_FD_CC
cat conftest.c >&AC_FD_CC
diff -r a9403b57e50d -r f932f9097eef doc/gmp.texi
--- a/doc/gmp.texi Sat Apr 30 11:45:32 2011 +0200
+++ b/doc/gmp.texi Sat Apr 30 14:33:26 2011 +0200
@@ -1322,15 +1322,15 @@
@cindex AIX
The @samp{mode32} ABI uses a 64-bit @code{long long} limb but with the chip
still in 32-bit mode and using 32-bit calling conventions. This is the default
-on for systems where the true 64-bit ABIs are unavailable. No special compiler
-options are needed for applications.
+for systems where the true 64-bit ABI is unavailable. No special compiler
+options are typically needed for applications.
@item @samp{ABI=32}
This is the basic 32-bit PowerPC ABI, with a 32-bit limb. No special compiler
options are needed for applications.
@end table
-GMP speed is greatest in @samp{aix64} and @samp{mode64}. In @samp{ABI=32}
+GMP's speed is greatest for @samp{aix64} and @samp{mode64}. In @samp{ABI=32}
only the 32-bit ISA is used and this doesn't make full use of a 64-bit chip.
On a suitable system we could perhaps use more of the ISA, but there are no
plans to do so.
@@ -1622,10 +1622,10 @@
Options, gcc, Using the GNU Compiler Collection (GCC)}).
This makes that code unsuitable for use with the special V9
- at samp{-mcmodel=embmedany} (which uses @code{g4} as a data segment pointer),
-and for applications wanting to use those registers for special purposes. In
-these cases the only suggestion currently is to build GMP with CPU @samp{none}
-to avoid the assembly code.
+ at samp{-mcmodel=embmedany} (which uses @code{g4} as a data segment pointer), and
+for applications wanting to use those registers for special purposes. In these
+cases the only suggestion currently is to build GMP with CPU @samp{none} to
+avoid the assembly code.
@item SunOS 4
@cindex SunOS
@@ -3811,14 +3811,16 @@
@cindex I/O functions
Functions that perform input from a stdio stream, and functions that output to
-a stdio stream. Passing a @code{NULL} pointer for a @var{stream} argument to any of
-these functions will make them read from @code{stdin} and write to
- at code{stdout}, respectively.
+a stdio stream, of @code{mpz} numbers. Passing a @code{NULL} pointer for a
+ at var{stream} argument to any of these functions will make them read from
+ at code{stdin} and write to @code{stdout}, respectively.
When using any of these functions, it is a good idea to include @file{stdio.h}
before @file{gmp.h}, since that will allow @file{gmp.h} to define prototypes
for these functions.
+See also @ref{Formatted Output} and @ref{Formatted Input}.
+
@deftypefun size_t mpz_out_str (FILE *@var{stream}, int @var{base}, mpz_t @var{op})
Output @var{op} on stdio stream @var{stream}, as a string of digits in base
@var{base}. The base argument may vary from 2 to 62 or from @minus{}2 to
@@ -4434,13 +4436,16 @@
@cindex Output functions
@cindex I/O functions
-When using any of these functions, it's a good idea to include @file{stdio.h}
+Functions that perform input from a stdio stream, and functions that output to
+a stdio stream, of @code{mpq} numbers. Passing a @code{NULL} pointer for a
+ at var{stream} argument to any of these functions will make them read from
+ at code{stdin} and write to @code{stdout}, respectively.
+
+When using any of these functions, it is a good idea to include @file{stdio.h}
before @file{gmp.h}, since that will allow @file{gmp.h} to define prototypes
for these functions.
-Passing a @code{NULL} pointer for a @var{stream} argument to any of these
-functions will make them read from @code{stdin} and write to @code{stdout},
-respectively.
+See also @ref{Formatted Output} and @ref{Formatted Input}.
@deftypefun size_t mpq_out_str (FILE *@var{stream}, int @var{base}, mpq_t @var{op})
Output @var{op} on stdio stream @var{stream}, as a string of digits in base
@@ -4935,14 +4940,16 @@
@cindex I/O functions
Functions that perform input from a stdio stream, and functions that output to
-a stdio stream. Passing a @code{NULL} pointer for a @var{stream} argument to
-any of these functions will make them read from @code{stdin} and write to
- at code{stdout}, respectively.
+a stdio stream, of @code{mpf} numbers. Passing a @code{NULL} pointer for a
+ at var{stream} argument to any of these functions will make them read from
+ at code{stdin} and write to @code{stdout}, respectively.
When using any of these functions, it is a good idea to include @file{stdio.h}
before @file{gmp.h}, since that will allow @file{gmp.h} to define prototypes
for these functions.
+See also @ref{Formatted Output} and @ref{Formatted Input}.
+
@deftypefun size_t mpf_out_str (FILE *@var{stream}, int @var{base}, size_t @var{n_digits}, mpf_t @var{op})
Print @var{op} to @var{stream}, as a string of digits. Return the number of
bytes written, or if an error occurred, return 0.
@@ -5323,7 +5330,7 @@
@code{mp_bits_per_limb} is even, which is always so currently).
@end deftypefn
- at deftypefun mp_limb_t mpn_mod_1 (mp_limb_t *@var{s1p}, mp_size_t @var{s1n}, mp_limb_t @var{s2limb})
+ at deftypefun mp_limb_t mpn_mod_1 (const mp_limb_t *@var{s1p}, mp_size_t @var{s1n}, mp_limb_t @var{s2limb})
Divide @{@var{s1p}, @var{s1n}@} by @var{s2limb}, and return the remainder.
@var{s1n} can be zero.
@end deftypefun
@@ -5494,6 +5501,8 @@
@deftypefun int mpn_perfect_square_p (const mp_limb_t *@var{s1p}, mp_size_t @var{n})
Return non-zero iff @{@var{s1p}, @var{n}@} is a perfect square.
+The most significant limb of the input @{@var{s1p}, @var{n}@} must be
+non-zero.
@end deftypefun
@deftypefun void mpn_and_n (mp_limb_t *@var{rp}, const mp_limb_t *@var{s1p}, const mp_limb_t *@var{s2p}, mp_size_t @var{n})
@@ -7216,6 +7225,12 @@
@c gmp-d @spaceuref{http://home.comcast.net/~benhinkle/gmp-d/}
@c @end itemize
+ at item Eiffel
+ at itemize @bullet
+ at item
+Eiffelroom @spaceuref{http://www.eiffelroom.org/node/442}
+ at end itemize
+
@item Fortran
@itemize @bullet
@item
@@ -7320,9 +7335,13 @@
@item Python
@itemize @bullet
@item
-mpz module in the standard distribution, @uref{http://www.python.org/}
- at item
-GMPY @uref{http://gmpy.sourceforge.net/}
+GMPY @uref{http://code.google.com/p/gmpy/}
+ at end itemize
+
+ at item Ruby
+ at itemize @bullet
+ at item
+http://rubygems.org/gems/gmp
@end itemize
@item Scheme
diff -r a9403b57e50d -r f932f9097eef mpn/x86_64/core2/popcount.asm
--- a/mpn/x86_64/core2/popcount.asm Sat Apr 30 11:45:32 2011 +0200
+++ b/mpn/x86_64/core2/popcount.asm Sat Apr 30 14:33:26 2011 +0200
@@ -20,4 +20,5 @@
include(`../config.m4')
+MULFUNC_PROLOGUE(mpn_popcount)
include_mpn(`x86/pentium4/sse2/popcount.asm')
diff -r a9403b57e50d -r f932f9097eef mpn/x86_64/pentium4/popcount.asm
--- a/mpn/x86_64/pentium4/popcount.asm Sat Apr 30 11:45:32 2011 +0200
+++ b/mpn/x86_64/pentium4/popcount.asm Sat Apr 30 14:33:26 2011 +0200
@@ -20,4 +20,5 @@
include(`../config.m4')
+MULFUNC_PROLOGUE(mpn_popcount)
include_mpn(`x86/pentium4/sse2/popcount.asm')
diff -r a9403b57e50d -r f932f9097eef tune/powerpc.asm
--- a/tune/powerpc.asm Sat Apr 30 11:45:32 2011 +0200
+++ b/tune/powerpc.asm Sat Apr 30 14:33:26 2011 +0200
@@ -32,7 +32,7 @@
mftbu r4
mftb r5
mftbu r6
- cmp cr0, r4, r6
+ cmpw cr0, r4, r6
bne L(again)
stw r5, 0(r3)
More information about the gmp-commit
mailing list