[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Wed Feb 27 19:47:40 CET 2013


details:   /var/hg/gmp/rev/466822fc85a8
changeset: 15499:466822fc85a8
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Wed Feb 27 19:44:56 2013 +0100
description:
Fixed typo in delay loop message.

details:   /var/hg/gmp/rev/d4a2e4e0b904
changeset: 15500:d4a2e4e0b904
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Wed Feb 27 19:47:36 2013 +0100
description:
speed_measure: Increase repetition count on zero measurements.

diffstat:

 ChangeLog     |  5 +++++
 tune/common.c |  3 +++
 tune/time.c   |  2 +-
 3 files changed, 9 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r b5f7eeee2570 -r d4a2e4e0b904 ChangeLog
--- a/ChangeLog	Wed Feb 27 11:14:22 2013 +0100
+++ b/ChangeLog	Wed Feb 27 19:47:36 2013 +0100
@@ -1,3 +1,8 @@
+2013-02-27  Niels Möller  <nisse at lysator.liu.se>
+
+	* tune/common.c (speed_measure): Increase repetition count if we
+	get a zero measurement.
+
 2013-02-27 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
         * mini-gmp/mini-gmp.c (mpz_div_q_2exp): Adjust only if needed.
diff -r b5f7eeee2570 -r d4a2e4e0b904 tune/common.c
--- a/tune/common.c	Wed Feb 27 11:14:22 2013 +0100
+++ b/tune/common.c	Wed Feb 27 19:47:36 2013 +0100
@@ -165,6 +165,9 @@
 		  fprintf (stderr, "Fatal error: too many (%d) failed measurements (0.0)\n", zeros);
 		  abort ();
 		}
+	     if (s->reps < 10000)
+	       s->reps *= 2;
+
 	      continue;
 	    }
 
diff -r b5f7eeee2570 -r d4a2e4e0b904 tune/time.c
--- a/tune/time.c	Wed Feb 27 11:14:22 2013 +0100
+++ b/tune/time.c	Wed Feb 27 19:47:36 2013 +0100
@@ -794,7 +794,7 @@
       duration = (end.tv_sec + end.tv_nsec * 1e-9
 		  - start.tv_sec - start.tv_nsec * 1e-9);
       if (speed_option_verbose)
-	printf ("delay loop of %d rounds took %s (according to clock_get_time)\n",
+	printf ("delay loop of %d rounds took %s (according to clock_gettime)\n",
 		CGT_DELAY_COUNT, unittime_string (duration));
       if (duration < 100e-9)
 	{


More information about the gmp-commit mailing list