1 #include <cln/number.h>
3 #include <cln/integer.h>
4 #include <cln/modinteger.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 uintL len = atoi(argv[1]);
20 cl_modint_ring R = find_modint_ring((cl_I)1 << (intDsize*len));
21 cl_MI a = R->random();
23 do { b = R->random(); } while (!oddp(R->retract(b)));
25 for (int rep = repetitions; rep > 0; rep--)
26 { cl_MI c = R->div(a,b); }