1 #include <cln/number.h>
3 #include <cln/integer.h>
4 #include <cln/random.h>
7 #include <cln/timing.h>
10 int main (int argc, char * argv[])
13 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
14 repetitions = atoi(argv[2]);
19 cl_I m1 = cl_I(argv[1]);
20 cl_I M1 = (cl_I)1 << (intDsize*m1);
21 cl_I a = abs(random_I(M1));
22 extern int cl_sqrt_algo;
24 for (int rep = repetitions; rep > 0; rep--)
25 { cl_I b; isqrt(a,&b); }