]> www.ginac.de Git - cln.git/blobdiff - tests/timeprint-compare.cc
Allow 64-bit builds on MacOS X 10.5.
[cln.git] / tests / timeprint-compare.cc
index 91cb70341d8de77fc407b8be7f757989177426a5..0e4b235d272cad527542d7610623e1283b8d53f5 100644 (file)
@@ -1,13 +1,12 @@
-#include <cl_number.h>
-#include <cl_io.h>
-#include <cl_integer.h>
-#include <cl_random.h>
-#include <stdlib.h>
-#include <string.h>
-#include <cl_timing.h>
+#include <cln/number.h>
+#include <cln/io.h>
+#include <cln/integer.h>
+#include <cln/random.h>
+#include <cstdlib>
+#include <cstring>
+#include <cln/timing.h>
 #include <cl_print.h>
-#include <cl_malloc.h>
-#include <cl_abort.h>
+#include <cln/malloc.h>
 
 int main (int argc, char * argv[])
 {
@@ -26,19 +25,19 @@ int main (int argc, char * argv[])
        {
                char* p = (cl_digits_algo = 0, cl_decimal_string(a));
                char* q = (cl_digits_algo = 1, cl_decimal_string(a));
-               if (strcmp(p,q)) cl_abort();
-               cl_free_hook(p);
-               cl_free_hook(q);
+               if (strcmp(p,q)) abort();
+               free_hook(p);
+               free_hook(q);
        }
        // Now start the timing.
        cl_digits_algo = 0;
        { CL_TIMING;
          for (int rep = repetitions; rep > 0; rep--)
-           { char* p = cl_decimal_string(a); cl_free_hook(p); }
+           { char* p = cl_decimal_string(a); free_hook(p); }
        }
        cl_digits_algo = 1;
        { CL_TIMING;
          for (int rep = repetitions; rep > 0; rep--)
-           { char* p = cl_decimal_string(a); cl_free_hook(p); }
+           { char* p = cl_decimal_string(a); free_hook(p); }
        }
 }