| 1 |
#include <cl_number.h> |
#include <cln/number.h> |
| 2 |
#include <cl_io.h> |
#include <cln/io.h> |
| 3 |
#include <cl_integer.h> |
#include <cln/integer.h> |
| 4 |
#include <stdlib.h> |
#include <cstdlib> |
| 5 |
#include <string.h> |
#include <cstring> |
| 6 |
#include <cl_timing.h> |
#include <cln/timing.h> |
| 7 |
|
|
| 8 |
|
using namespace std; |
| 9 |
|
using namespace cln; |
| 10 |
|
|
| 11 |
int main (int argc, char * argv[]) |
int main (int argc, char * argv[]) |
| 12 |
{ |
{ |
| 28 |
if (argc < 1) |
if (argc < 1) |
| 29 |
exit(1); |
exit(1); |
| 30 |
|
|
| 31 |
fprint(cl_stderr, "Limit: "); |
cerr << "Limit: " << limit << endl; |
| 32 |
fprintdecimal(cl_stderr, limit); |
cerr << "Number of repetitions: " << repetitions << endl; |
|
fprint(cl_stderr, "\n"); |
|
|
fprint(cl_stderr, "Number of repetitions: "); |
|
|
fprintdecimal(cl_stderr, repetitions); |
|
|
fprint(cl_stderr, "\n"); |
|
| 33 |
|
|
| 34 |
{ CL_TIMING; |
{ CL_TIMING; |
| 35 |
for (int rep = repetitions; rep > 0; rep--) |
for (int rep = repetitions; rep > 0; rep--) |