]> www.ginac.de Git - cln.git/blob - tests/timeexp1.cc
- Fixed a logic error in the checks of gmp3.
[cln.git] / tests / timeexp1.cc
1 #include <cl_number.h>
2 #include <cl_io.h>
3 #include <cl_float.h>
4 #include <cl_real.h>
5 #include <cl_random.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include <cl_timing.h>
9
10 int main (int argc, char * argv[])
11 {
12         int repetitions = 1;
13         if ((argc >= 3) && !strcmp(argv[1],"-r")) {
14                 repetitions = atoi(argv[2]);
15                 argc -= 2; argv += 2;
16         }
17         if (argc < 2)
18                 exit(1);
19         uintL len = atoi(argv[1]);
20         extern cl_LF compute_exp1 (uintC len);
21         cl_LF p;
22         { CL_TIMING;
23           for (int rep = repetitions; rep > 0; rep--)
24             { p = compute_exp1(len); }
25         }
26 //      cout << p << endl;
27 }