-#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[])
{
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.
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;