]> www.ginac.de Git - cln.git/blob - tests/timeexp1.cc
Enable modifying operators by default.
[cln.git] / tests / timeexp1.cc
1 #include <cln/number.h>
2 #include <cln/io.h>
3 #include <cln/float.h>
4 #include <cln/real.h>
5 #include <cln/random.h>
6 #include <cstdlib>
7 #include <cstring>
8 #include <cln/timing.h>
9 using namespace cln;
10
11 int main (int argc, char * argv[])
12 {
13         int repetitions = 1;
14         if ((argc >= 3) && !strcmp(argv[1],"-r")) {
15                 repetitions = atoi(argv[2]);
16                 argc -= 2; argv += 2;
17         }
18         if (argc < 2)
19                 exit(1);
20         uintL len = atoi(argv[1]);
21         extern cl_LF compute_exp1 (uintC len);
22         cl_LF p;
23         { CL_TIMING;
24           for (int rep = repetitions; rep > 0; rep--)
25             { p = compute_exp1(len); }
26         }
27 //      cout << p << endl;
28 }