[Gmp-commit] /home/hgfiles/gmp: Use more typical divisor.

mercurial at gmplib.org mercurial at gmplib.org
Wed May 5 16:15:46 CEST 2010


details:   /home/hgfiles/gmp/rev/a3175b030a40
changeset: 13601:a3175b030a40
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed May 05 16:15:33 2010 +0200
description:
Use more typical divisor.

diffstat:

 ChangeLog     |  5 +++++
 tune/tuneup.c |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r a83822b0dcb5 -r a3175b030a40 ChangeLog
--- a/ChangeLog	Tue May 04 22:45:44 2010 +0200
+++ b/ChangeLog	Wed May 05 16:15:33 2010 +0200
@@ -1,3 +1,8 @@
+2010-05-05  Torbjorn Granlund  <tege at gmplib.org>
+
+	* tune/tuneup.c (tune_mod_1): Use more typical divisor, for the benefit
+	of machines with early-out multipliers.
+
 2010-05-04  Torbjorn Granlund  <tege at gmplib.org>
 
 	* tune/tuneup.c (tune_mod_1): Fix typo.
diff -r a83822b0dcb5 -r a3175b030a40 tune/tuneup.c
--- a/tune/tuneup.c	Tue May 04 22:45:44 2010 +0200
+++ b/tune/tuneup.c	Wed May 05 16:15:33 2010 +0200
@@ -1777,7 +1777,7 @@
     static struct param_t  param;
 
     param.check_size = 256;
-    s.r = randlimb_norm () / 5;
+    s.r = randlimb_half;
     param.noprint = 1;
 
     param.function = speed_mpn_mod_1_1;


More information about the gmp-commit mailing list