]> www.ginac.de Git - cln.git/blobdiff - tests/timediv2adic-compare.cc
Fix yet another dependent base C++ language issue.
[cln.git] / tests / timediv2adic-compare.cc
index de1aeeb0755445f932e17e1336822c59c20e8439..b682aa437b213c254df377455a3bec1e07ed9413 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[])
 {
@@ -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
        extern int div2adic_algo;
        // Check.
@@ -45,7 +45,7 @@ int main (int argc, char * argv[])
        div2adic(a_len,a_LSDptr,b_len,b_LSDptr,q_LSDptr);
        div2adic_algo = 1;
        div2adic(a_len,a_LSDptr,b_len,b_LSDptr,q1_LSDptr);
-       if (compare_loop_msp(q_MSDptr,q1_MSDptr,a_len)) cl_abort();
+       if (compare_loop_msp(q_MSDptr,q1_MSDptr,a_len)) abort();
        // Time.
        div2adic_algo = 0;
        { CL_TIMING;