[Gmp-commit] /var/hg/gmp: Run 25 millerrabin tests.

mercurial at gmplib.org mercurial at gmplib.org
Tue Jan 17 14:15:58 CET 2012


details:   /var/hg/gmp/rev/8e0b416e9197
changeset: 14571:8e0b416e9197
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Jan 17 14:15:54 2012 +0100
description:
Run 25 millerrabin tests.

diffstat:

 ChangeLog       |  11 +++++++----
 demos/isprime.c |   4 ++--
 2 files changed, 9 insertions(+), 6 deletions(-)

diffs (60 lines):

diff -r 246ee5f869cd -r 8e0b416e9197 ChangeLog
--- a/ChangeLog	Mon Jan 16 22:08:11 2012 +0100
+++ b/ChangeLog	Tue Jan 17 14:15:54 2012 +0100
@@ -1,3 +1,7 @@
+2012-01-17  Torbjorn Granlund  <tege at gmplib.org>
+
+	* demos/isprime.c (main): Run 25 millerrabin tests.
+
 2012-01-16 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mpz/fac_ui.h (SIEVE_SEED): Define value for small limb size.
@@ -24,8 +28,7 @@
 
 2012-01-10 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
-	* mpn/minithres/gmp-mparam.h: New FAC_ODD_ and FAC_DSC_
-	thresholds.
+	* mpn/minithres/gmp-mparam.h: New FAC_ODD_ and FAC_DSC_ thresholds.
 	* tune/tuneup.c (tune_fac_ui): Correct minimum for FAC_DSC_.
 
 2012-01-07  Torbjorn Granlund  <tege at gmplib.org>
@@ -200,7 +203,7 @@
 
 	* mpn/x86_64/invert_limb.asm: Wrap .protected decl.
 
-	* gmp-impl.h (DECL_divexact_1): Fix typo in return typo.
+	* gmp-impl.h (DECL_divexact_1): Fix typo in return type.
 
 	* mpn/x86_64/dos64.m4 (LEA): New define.
 	(PIC): Define.
@@ -437,7 +440,7 @@
 	* mpn/powerpc64/mode64/lshiftc.asm: Move file from here...
 	* mpn/powerpc64/lshiftc.asm: ...to here, with trivial modifications.
 
-	* configure.in: Pass -m32 in more cases, using via _maybe mechanism.
+	* configure.in: Pass -m32 in more cases, using _maybe mechanism.
 	Inherit default gcc_cflags in more places.
 
 	* mpn/powerpc64/mode64/p7/gmp-mparam.h: New file.
diff -r 246ee5f869cd -r 8e0b416e9197 demos/isprime.c
--- a/demos/isprime.c	Mon Jan 16 22:08:11 2012 +0100
+++ b/demos/isprime.c	Tue Jan 17 14:15:54 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");


More information about the gmp-commit mailing list