1 #include <cln/number.h>
3 #include <cln/integer.h>
4 #include <cln/integer_io.h>
5 #include <cln/random.h>
8 #include <cln/timing.h>
9 #include <cln/malloc.h>
10 #include <cln/abort.h>
13 int main (int argc, char * argv[])
16 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
17 repetitions = atoi(argv[2]);
22 cl_I m = cl_I(argv[1]);
23 cl_I M = (cl_I)1 << (intDsize*m);
25 // One run to fill the cache.
27 char* p = cl_decimal_string(a);
30 // Now start the timing.
32 for (int rep = repetitions; rep > 0; rep--)
33 { char* p = cl_decimal_string(a); free_hook(p); }