[Gmp-commit] /var/hg/gmp: tuneup: Add missing comment for the one_method help...

mercurial at gmplib.org mercurial at gmplib.org
Mon Sep 16 20:17:06 UTC 2019


details:   /var/hg/gmp/rev/370ef90c6a9a
changeset: 17913:370ef90c6a9a
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Mon Sep 16 21:57:37 2019 +0200
description:
tuneup: Add missing comment for the one_method helper function.

diffstat:

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

diffs (15 lines):

diff -r e4593e1a4e1e -r 370ef90c6a9a tune/tuneup.c
--- a/tune/tuneup.c	Sun Sep 15 14:56:05 2019 +0200
+++ b/tune/tuneup.c	Mon Sep 16 21:57:37 2019 +0200
@@ -712,6 +712,11 @@
     print_define_end (param->name, *threshold);
 }
 
+/* Time N different FUNCTIONS with the same parameters and size, to
+   select the fastest. Since *_METHOD defines start numbering from
+   one, if functions[i] is fastest, the value of the define is i+1.
+   Also output a comment with speedup compared to the next fastest
+   function. The NAME argument is used only for trace output.*/
 void
 one_method (int n, speed_function_t *functions,
 	    const char *name, const char *define,


More information about the gmp-commit mailing list