1 #include <cln/number.h>
4 #include <cln/lfloat.h>
7 #include <cln/random.h>
10 #include <cln/timing.h>
12 int main (int argc, char * argv[])
15 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
16 repetitions = atoi(argv[2]);
21 uintL len = atoi(argv[1]);
23 cl_LF one = cl_I_to_LF(1,len);
24 cl_F x = one + random_F(one)/3;
27 cl_F x = sqrt(sqrt(cl_I_to_LF(2,len)));
30 extern int cl_lnx_algo;
32 y = ln(x); // fill cache
34 for (int rep = repetitions; rep > 0; rep--)
40 for (int rep = repetitions; rep > 0; rep--)