[Gmp-commit] /var/hg/gmp-5.0: 4 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Tue Jan 17 14:36:00 CET 2012
details: /var/hg/gmp-5.0/rev/6ad3bc7c1bf8
changeset: 13495:6ad3bc7c1bf8
user: Torbjorn Granlund <tege at gmplib.org>
date: Tue Jan 17 14:02:21 2012 +0100
description:
Merging last hunk of changes from mainline repo.
details: /var/hg/gmp-5.0/rev/0dba1d8b074a
changeset: 13496:0dba1d8b074a
user: Torbjorn Granlund <tege at gmplib.org>
date: Tue Jan 17 14:20:22 2012 +0100
description:
Run 25 millerrabin tests.
details: /var/hg/gmp-5.0/rev/62739086546e
changeset: 13497:62739086546e
user: Torbjorn Granlund <tege at gmplib.org>
date: Tue Jan 17 14:20:41 2012 +0100
description:
*** empty log message ***
details: /var/hg/gmp-5.0/rev/e20b2b5caf36
changeset: 13498:e20b2b5caf36
user: Torbjorn Granlund <tege at gmplib.org>
date: Tue Jan 17 14:35:57 2012 +0100
description:
Bumb version numbers.
diffstat:
ChangeLog | 71 +++++++++++++++++++++++++++++++++++++++++++++++
Makefile.am | 7 ++-
NEWS | 24 +++++++++++++++-
demos/factorize.c | 6 +-
demos/isprime.c | 4 +-
doc/gmp.texi | 1 +
gmp-h.in | 2 +-
gmp-impl.h | 2 +-
mpf/sub.c | 12 +++---
mpn/generic/popham.c | 4 +-
mpn/generic/udiv_w_sdiv.c | 4 +-
mpn/sh/sh2/submul_1.s | 6 +-
mpz/nextprime.c | 2 +-
printf/doprntf.c | 8 +++-
tests/mpz/t-scan.c | 2 +-
tests/rand/t-lc2exp.c | 3 +-
16 files changed, 128 insertions(+), 30 deletions(-)
diffs (truncated from 462 to 300 lines):
diff -r 3a9ad2babb85 -r e20b2b5caf36 ChangeLog
--- a/ChangeLog Tue Jan 17 11:17:41 2012 +0100
+++ b/ChangeLog Tue Jan 17 14:35:57 2012 +0100
@@ -1,3 +1,14 @@
+2012-01-17 Torbjorn Granlund <tege at gmplib.org>
+
+ * Version 5.0.3 released.
+
+ * gmp-h.in (__GNU_MP_VERSION_PATCHLEVEL): Bump.
+
+ * Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*, LIBMP_LT_*):
+ Bump version info.
+
+ * demos/isprime.c (main): Run 25 millerrabin tests.
+
2011-12-30 Torbjorn Granlund <tege at gmplib.org>
* mpz/hamdist.c: Fix typo in a return statement.
@@ -9,6 +20,16 @@
* mpn/x86_64/fat/fat.c (__gmpn_cpuvec_init): Add a missing break.
+2011-12-01 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpn/x86_64/fat/fat.c: Copy fake cpuid code from x86/fat/fat.c.
+
+ * gmp-impl.h (DECL_divexact_1): Fix typo in return type.
+
+2011-11-28 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpn/generic/udiv_w_sdiv.c: Use CNST_LIMB for some constants.
+
2011-11-25 Torbjorn Granlund <tege at gmplib.org>
* configure.in: Overhaul x86/x86_64 support, merging three case
@@ -37,14 +58,46 @@
* mpn/generic/powm_sec.c (mpn_powm_sec): Use mpn_tabselect also in
initialisation.
+2011-10-14 Torbjorn Granlund <tege at gmplib.org>
+
+ From Per Olofsson:
+ * mpn/generic/popham.c: Add __GMP_NOTHROW to make it match gmp.h.
+
+2011-10-10 Torbjorn Granlund <tege at gmplib.org>
+
+ From Marco Trudel:
+ * tests/mpz/t-scan.c (check_ref): Fix loop end bound.
+
2011-10-04 Torbjorn Granlund <tege at gmplib.org>
* doc/gmp.texi (Custom Allocation): Rephrase a paragraph.
+ * demos/factorize.c: Run 25 Miller-Rabin tests.
+
+ * mpz/nextprime.c: Run 25 mpz_millerrabin tests (was 10).
+
+2011-09-26 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpn/sh/sh2/submul_1.s: Make this old submul_1 implementation
+ actually compute intended function.
+
2011-09-25 Torbjorn Granlund <tege at gmplib.org>
* configure.in: Recognise sh3 and sh4.
+2011-08-18 Torbjorn Granlund <tege at gmplib.org>
+
+ * printf/doprntf.c (__gmp_doprnt_mpf): For DOPRNT_CONV_FIXED, ask for
+ one more digit.
+
+2011-08-17 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpf/sub.c: Fix typo in copy condition. Delay an allocation.
+
+2011-08-10 Torbjorn Granlund <tege at gmplib.org>
+
+ * tests/rand/t-lc2exp.c (check_bigc): Call abort after reporting error.
+
2011-07-14 Torbjorn Granlund <tege at gmplib.org>
* mpn/generic/dcpi1_bdiv_q.c (mpn_dcpi1_bdiv_q): Get mpn_sub_1 size
@@ -77,6 +130,9 @@
2011-05-05 Marc Glisse <marc.glisse at inria.fr>
+ [This change was made after the 5.0.2 release, but inserted here to
+ match the change chronology of the main repository.]
+
* mpn/x86_64/fat/fat.c: Update for Sandy Bridge.
* config.guess: warning to keep it in sync with fat.c.
@@ -105,6 +161,9 @@
2011-04-28 Torbjorn Granlund <tege at gmplib.org>
+ [This change was made after the 5.0.2 release, but inserted here to
+ match the change chronology of the main repository.]
+
* configure.in (x86_64): Support bobcat specifically.
(x86): Match bobcat and bulldozer, handle like k10.
@@ -120,6 +179,9 @@
2011-04-10 Niels Möller <nisse at lysator.liu.se>
+ [This change was made after the 5.0.2 release, but inserted here to
+ match the change chronology of the main repository.]
+
* configure.in: Add invert_limb_table to extra_functions_64 on
x86_64.
@@ -162,6 +224,9 @@
2011-01-31 Torbjorn Granlund <tege at gmplib.org>
+ [This change was made after the 5.0.2 release, but inserted here to
+ match the change chronology of the main repository.]
+
* config.guess: Recognise new Intel processors.
* config.guess: Support 'coreinhm' and 'coreisbr'.
@@ -179,6 +244,9 @@
2010-11-10 Torbjorn Granlund <tege at gmplib.org>
+ [This change was made after the 5.0.2 release, but inserted here to
+ match the change chronology of the main repository.]
+
* mp_get_fns.c: Add a __GMP_NOTHROW for coherency with prototype.
* mp_set_fns.c: Likewise.
* mpf/cmp.c: Likewise.
@@ -215,6 +283,9 @@
2010-11-09 Torbjorn Granlund <tege at gmplib.org>
+ [This change was made after the 5.0.2 release, but inserted here to
+ match the change chronology of the main repository.]
+
* configure.in (AC_INIT): Amend bug reporting address with manual
reference.
diff -r 3a9ad2babb85 -r e20b2b5caf36 Makefile.am
--- a/Makefile.am Tue Jan 17 11:17:41 2012 +0100
+++ b/Makefile.am Tue Jan 17 14:35:57 2012 +0100
@@ -68,6 +68,7 @@
# 5.0.0 9:0:6 6:0:2 4:20:1 Should have been 10:0:0
# 5.0.1 10:1:0 6:1:2 4:21:1
# 5.0.2 10:2:0 6:2:2 4:22:1
+# 5.0.3 10:3:0 6:3:2 4:23:1
#
# Starting at 3:0:0 is a slight abuse of the versioning system, but it
# ensures we're past soname libgmp.so.2, which was used on Debian GNU/Linux
@@ -81,15 +82,15 @@
# libgmpxx.so.3.0.4) incrementing, to make it clear which GMP it's from.
LIBGMP_LT_CURRENT = 10
-LIBGMP_LT_REVISION = 2
+LIBGMP_LT_REVISION = 3
LIBGMP_LT_AGE = 0
LIBGMPXX_LT_CURRENT = 6
-LIBGMPXX_LT_REVISION = 2
+LIBGMPXX_LT_REVISION = 3
LIBGMPXX_LT_AGE = 2
LIBMP_LT_CURRENT = 4
-LIBMP_LT_REVISION = 22
+LIBMP_LT_REVISION = 23
LIBMP_LT_AGE = 1
diff -r 3a9ad2babb85 -r e20b2b5caf36 NEWS
--- a/NEWS Tue Jan 17 11:17:41 2012 +0100
+++ b/NEWS Tue Jan 17 14:35:57 2012 +0100
@@ -1,10 +1,32 @@
Copyright 1996, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
-2009, 2010, 2011 Free Software Foundation, Inc.
+2009, 2010, 2011, 2012 Free Software Foundation, Inc.
Verbatim copying and distribution of this entire article is permitted
in any medium, provided this notice is preserved.
+Changes between GMP version 5.0.2 and 5.0.3
+
+ BUGS FIXED
+ * A few minor bugs related to portability fixed.
+
+ * A slight leak of the powm_sec functions have been sealed. (This
+ leak could possibly be used to extract the most significant few
+ bits of the exponent. "Few" here means at most 10.)
+
+ * The mpz_nextprime function now runs a safer number of pseudo-random prime
+ tests.
+
+ SPEEDUPS
+ * None, except indirectly through recognition of new CPUs.
+
+ FEATURES
+ * New CPUs recognised.
+
+ MISC
+ * None.
+
+
Changes between GMP version 5.0.1 and 5.0.2
BUGS FIXED
diff -r 3a9ad2babb85 -r e20b2b5caf36 demos/factorize.c
--- a/demos/factorize.c Tue Jan 17 11:17:41 2012 +0100
+++ b/demos/factorize.c Tue Jan 17 14:35:57 2012 +0100
@@ -231,7 +231,7 @@
mpz_divexact (n, n, t1); /* divide by t1, before t1 is overwritten */
- if (!mpz_probab_prime_p (t1, 10))
+ if (!mpz_probab_prime_p (t1, 25))
{
do
{
@@ -257,7 +257,7 @@
mpz_mod (x, x, n);
mpz_mod (x1, x1, n);
mpz_mod (y, y, n);
- if (mpz_probab_prime_p (n, 10))
+ if (mpz_probab_prime_p (n, 25))
{
mpz_out_str (stdout, 10, n);
fflush (stdout);
@@ -296,7 +296,7 @@
printf ("[is number prime?] ");
fflush (stdout);
}
- if (mpz_probab_prime_p (t, 10))
+ if (mpz_probab_prime_p (t, 25))
mpz_out_str (stdout, 10, t);
else
factor_using_pollard_rho (t, 1L, p);
diff -r 3a9ad2babb85 -r e20b2b5caf36 demos/isprime.c
--- a/demos/isprime.c Tue Jan 17 11:17:41 2012 +0100
+++ b/demos/isprime.c Tue Jan 17 14:35:57 2012 +0100
@@ -47,7 +47,7 @@
{
if (mpz_set_str (n, argv[2], 0) != 0)
print_usage_and_exit ();
- exit (mpz_probab_prime_p (n, 5) == 0);
+ exit (mpz_probab_prime_p (n, 25) == 0);
}
for (i = 1; i < argc; i++)
@@ -55,7 +55,7 @@
int class;
if (mpz_set_str (n, argv[i], 0) != 0)
print_usage_and_exit ();
- class = mpz_probab_prime_p (n, 5);
+ class = mpz_probab_prime_p (n, 25);
mpz_out_str (stdout, 10, n);
if (class == 0)
puts (" is composite");
diff -r 3a9ad2babb85 -r e20b2b5caf36 doc/gmp.texi
--- a/doc/gmp.texi Tue Jan 17 11:17:41 2012 +0100
+++ b/doc/gmp.texi Tue Jan 17 14:35:57 2012 +0100
@@ -3556,6 +3556,7 @@
@cindex GCD functions
Set @var{rop} to the greatest common divisor of @var{op1} and @var{op2}. The
result is always positive even if one or both input operands are negative.
+Except if both inputs are zero; then this function defines @math{gcd(0,0) = 0}.
@end deftypefun
@deftypefun {unsigned long int} mpz_gcd_ui (mpz_t @var{rop}, mpz_t @var{op1}, unsigned long int @var{op2})
diff -r 3a9ad2babb85 -r e20b2b5caf36 gmp-h.in
--- a/gmp-h.in Tue Jan 17 11:17:41 2012 +0100
+++ b/gmp-h.in Tue Jan 17 14:35:57 2012 +0100
@@ -2273,7 +2273,7 @@
/* Major version number is the value of __GNU_MP__ too, above and in mp.h. */
#define __GNU_MP_VERSION 5
#define __GNU_MP_VERSION_MINOR 0
-#define __GNU_MP_VERSION_PATCHLEVEL 2
+#define __GNU_MP_VERSION_PATCHLEVEL 3
#define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL)
#define __GMP_H__
diff -r 3a9ad2babb85 -r e20b2b5caf36 gmp-impl.h
--- a/gmp-impl.h Tue Jan 17 11:17:41 2012 +0100
+++ b/gmp-impl.h Tue Jan 17 14:35:57 2012 +0100
@@ -64,7 +64,7 @@
#define DECL_copyi(name) \
DECL_copyd (name)
#define DECL_divexact_1(name) \
- __GMP_DECLSPEC mp_limb_t name __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t))
+ __GMP_DECLSPEC void name __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t))
#define DECL_divexact_by3c(name) \
__GMP_DECLSPEC mp_limb_t name __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t))
#define DECL_divrem_1(name) \
diff -r 3a9ad2babb85 -r e20b2b5caf36 mpf/sub.c
--- a/mpf/sub.c Tue Jan 17 11:17:41 2012 +0100
+++ b/mpf/sub.c Tue Jan 17 14:35:57 2012 +0100
@@ -1,6 +1,6 @@
/* mpf_sub -- Subtract two floats.
More information about the gmp-commit
mailing list