1 #include <cln/number.h>
7 #include <cln/timing.h>
8 #include "float/lfloat/cl_LF.h"
11 // FIXME: don't use internal functions.
12 extern cl_LF zeta (int s, uintC len);
13 extern cl_LF compute_zeta_exp (int s, uintC len);
14 extern cl_LF compute_zeta_cvz1 (int s, uintC len);
15 extern cl_LF compute_zeta_cvz2 (int s, uintC len);
16 extern cl_LF zeta3 (uintC len);
22 int main (int argc, char * argv[])
25 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
26 repetitions = atoi(argv[2]);
31 uintL len = atoi(argv[1]);
33 ln(cl_I_to_LF(1000,len+10)); // fill cache
35 for (int rep = repetitions; rep > 0; rep--)
36 { p = compute_zeta_exp(3,len); }
40 for (int rep = repetitions; rep > 0; rep--)
41 { p = compute_zeta_cvz1(3,len); }
45 for (int rep = repetitions; rep > 0; rep--)
46 { p = compute_zeta_cvz2(3,len); }
50 for (int rep = repetitions; rep > 0; rep--)