summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorNiels M?ller <nisse@lysator.liu.se>2019-09-16 21:57:37 +0200
committerNiels M?ller <nisse@lysator.liu.se>2019-09-16 21:57:37 +0200
commite6603c7cb0bf111b9b49a51013977aa3ca316ee0 (patch)
treedfd8738a5fb36556974371b754d3210fca1a2ef7 /tune
parent9beb7c819d6960f68fcebb97bc6bd3247e8ccb84 (diff)
downloadgmp-e6603c7cb0bf111b9b49a51013977aa3ca316ee0.tar.gz
tuneup: Add missing comment for the one_method helper function.
Diffstat (limited to 'tune')
-rw-r--r--tune/tuneup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c
index 19948e0e4..fd7ecbac9 100644
--- a/tune/tuneup.c
+++ b/tune/tuneup.c
@@ -712,6 +712,11 @@ one (mp_size_t *threshold, struct param_t *param)
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,