]> www.ginac.de Git - cln.git/blobdiff - tests/timeprint.cc
Get rid of CL_REQUIRE/CL_PROVIDE(cl_F_ln10_var).
[cln.git] / tests / timeprint.cc
index b8774aafe2d5d13870dfdc985fc8a6a1549d45cc..bc1d224486f232b2150944b59d9470e82befdf20 100644 (file)
@@ -1,13 +1,13 @@
-#include <cl_number.h>
-#include <cl_io.h>
-#include <cl_integer.h>
-#include <cl_integer_io.h>
-#include <cl_random.h>
-#include <stdlib.h>
-#include <string.h>
-#include <cl_timing.h>
-#include <cl_malloc.h>
-#include <cl_abort.h>
+#include <cln/number.h>
+#include <cln/io.h>
+#include <cln/integer.h>
+#include <cln/integer_io.h>
+#include <cln/random.h>
+#include <cstdlib>
+#include <cstring>
+#include <cln/timing.h>
+#include <cln/malloc.h>
+using namespace cln;
 
 int main (int argc, char * argv[])
 {
@@ -24,11 +24,11 @@ int main (int argc, char * argv[])
        // One run to fill the cache.
        {
                char* p = cl_decimal_string(a);
-               cl_free_hook(p);
+               free_hook(p);
        }
        // Now start the timing.
        { 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); }
        }
 }