summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorschevill <schevill@280ebfd0-de03-0410-8827-d642c229c3f4>2010-10-14 15:31:16 +0000
committerschevill <schevill@280ebfd0-de03-0410-8827-d642c229c3f4>2010-10-14 15:31:16 +0000
commite832877ec222701b3a4d2e298980db36797c5881 (patch)
tree503f5a11b0632e4e2448fab9e9394bb64c18f812 /tune
parent2fd976bc3c65b96beb914257c0ed332da48ce6b1 (diff)
downloadmpfr-e832877ec222701b3a4d2e298980db36797c5881.tar.gz
Modified the number of iterations in the loop of mpfr_speed_measure.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7200 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tune')
-rw-r--r--tune/tuneup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c
index 937d99a80..e97a7f2eb 100644
--- a/tune/tuneup.c
+++ b/tune/tuneup.c
@@ -325,8 +325,8 @@ mpfr_speed_measure (speed_function_t fun, struct speed_params *s, char *m)
{
double t = -1.0;
int i;
-
- for (i = 0; i < 1 && t == -1.0; i++)
+ int number_of_iterations = 5;
+ for (i = 0; i < number_of_iterations && t == -1.0; i++)
t = speed_measure (fun, s);
if (t == -1.0)
{
@@ -363,9 +363,9 @@ domeasure (mpfr_prec_t *threshold,
s.yp = s.xp + size;
mpn_random (s.yp, size);
*threshold = MPFR_PREC_MAX;
- t1 = mpfr_speed_measure (func, &s, "1");
+ t1 = mpfr_speed_measure (func, &s, "function 1");
*threshold = 1;
- t2 = mpfr_speed_measure (func, &s, "2");
+ t2 = mpfr_speed_measure (func, &s, "function 2");
free (s.xp);
/* t1 is the time of the first algo (used for low prec) */
if (t2 >= t1)