]> www.ginac.de Git - cln.git/blobdiff - tests/timediv2adic.cc
Fix yet another dependent base C++ language issue.
[cln.git] / tests / timediv2adic.cc
index a944574f660f1719639adb3e39cf6cf0e7bc190f..09264c4cf87cefcd6bd5e38f98e000eb3d8cd599 100644 (file)
@@ -1,14 +1,14 @@
-#include <cl_number.h>
-#include <cl_io.h>
-#include <cl_integer.h>
-#include "cl_DS.h"
-#include "cl_2DS.h"
-#include <cl_random.h>
-#include "cl_random_impl.h"
-#include <cl_abort.h>
-#include <stdlib.h>
-#include <string.h>
-#include <cl_timing.h>
+#include <cln/number.h>
+#include <cln/io.h>
+#include <cln/integer.h>
+#include "base/digitseq/cl_DS.h"
+#include "base/digitseq/cl_2DS.h"
+#include <cln/random.h>
+#include "base/random/cl_random_impl.h"
+#include <cstdlib>
+#include <cstring>
+#include <cln/timing.h>
+using namespace cln;
 
 int main (int argc, char * argv[])
 {
@@ -23,7 +23,7 @@ int main (int argc, char * argv[])
        uintL b_len = atoi(argv[2]);
        if (!(a_len >= b_len && b_len > 0))
                exit(1);
-       SAVE_NUM_STACK;
+       CL_ALLOCA_STACK;
        uintD* a_MSDptr;
        uintD* a_LSDptr;
        uintD* b_MSDptr;
@@ -36,8 +36,8 @@ int main (int argc, char * argv[])
        num_stack_alloc(b_len,b_MSDptr=,b_LSDptr=);
        num_stack_alloc(a_len,q_MSDptr=,q_LSDptr=);
        num_stack_alloc(a_len,q1_MSDptr=,q1_LSDptr=);
-       random_UDS(cl_default_random_state,a_MSDptr,a_len);
-       random_UDS(cl_default_random_state,b_MSDptr,b_len);
+       random_UDS(default_random_state,a_MSDptr,a_len);
+       random_UDS(default_random_state,b_MSDptr,b_len);
        lspref(b_LSDptr,0) |= 1; // force b to be odd
        { CL_TIMING;
          for (int rep = repetitions; rep > 0; rep--)