1 #include <cln/number.h>
4 #include <cln/lfloat.h>
7 #include <cln/random.h>
10 #include <cln/timing.h>
13 int main (int argc, char * argv[])
16 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
17 repetitions = atoi(argv[2]);
22 extern double cl_atanx_factor;
23 extern int cl_atan_algo;
24 uintL len = atoi(argv[1]);
25 cl_atanx_factor = atof(argv[2]);
27 cl_LF one = cl_I_to_LF(1,len);
28 cl_F x = scale_float(random_F(one),-1);
31 cl_F x = sqrt(cl_I_to_LF(2,len))-1;
36 for (int rep = repetitions; rep > 0; rep--)
42 for (int rep = repetitions; rep > 0; rep--)