]> www.ginac.de Git - cln.git/blobdiff - benchmarks/timebench2ap.cc
Fix compilation with GCC 4.4.
[cln.git] / benchmarks / timebench2ap.cc
index 561ef71cd794ab3ba0041e36db3c16f7ed93cdf0..679a5f4cb2b1699e55823cd497ad4b23b70eab61 100644 (file)
@@ -1,9 +1,12 @@
-#include <cl_number.h>
-#include <cl_io.h>
-#include <cl_integer.h>
-#include <stdlib.h>
-#include <string.h>
-#include <cl_timing.h>
+#include <cln/number.h>
+#include <cln/io.h>
+#include <cln/integer.h>
+#include <cstdlib>
+#include <cstring>
+#include <cln/timing.h>
+
+using namespace std;
+using namespace cln;
 
 int main (int argc, char * argv[])
 {
@@ -25,12 +28,8 @@ int main (int argc, char * argv[])
        if (argc < 1)
                exit(1);
 
-       fprint(cl_stderr, "Limit: ");
-       fprintdecimal(cl_stderr, limit);
-       fprint(cl_stderr, "\n");
-       fprint(cl_stderr, "Number of repetitions: ");
-       fprintdecimal(cl_stderr, repetitions);
-       fprint(cl_stderr, "\n");
+       cerr << "Limit: " << limit << endl;
+       cerr << "Number of repetitions: " << repetitions << endl;
 
        { CL_TIMING;
          for (int rep = repetitions; rep > 0; rep--)