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 extern double cl_exp_factor;
22 extern int cl_exp_algo;
23 uintL len = atoi(argv[1]);
24 cl_exp_factor = atof(argv[2]);
26 cl_LF one = cl_I_to_LF(1,len);
27 cl_F x = scale_float(random_F(one),-1);
30 cl_F x = sqrt(cl_I_to_LF(2,len))-1;
35 for (int rep = repetitions; rep > 0; rep--)
41 for (int rep = repetitions; rep > 0; rep--)