]> www.ginac.de Git - cln.git/blobdiff - src/numtheory/cl_IF_trialdiv.cc
* Add table of contents in TeX output.
[cln.git] / src / numtheory / cl_IF_trialdiv.cc
index 8798ad56ccaeaf1dcc1fd4286588e82a98f08271..70f4f6201bb19404a87d061ba567aa470a8f43b7 100644 (file)
@@ -15,6 +15,8 @@
 #error "intDsize too small for trialdivision!"
 #endif
 
+namespace cln {
+
 uint32 cl_trialdivision (const cl_I& n, uint32 d1, uint32 d2)
 {
        var uintL i = cl_small_prime_table_search(d1);
@@ -24,7 +26,7 @@ uint32 cl_trialdivision (const cl_I& n, uint32 d1, uint32 d2)
        CL_ALLOCA_STACK;
        var const uintD* n_MSDptr;
        var uintC n_len;
-       I_to_NDS_nocopy(n, n_MSDptr=,n_len=,,cl_false,);
+       I_to_NDS_nocopy(n, n_MSDptr=,n_len=,,false,);
        if (mspref(n_MSDptr,0)==0) { msshrink(n_MSDptr); n_len--; }
        // Make room for a quotient.
        var uintD* q_MSDptr;
@@ -38,3 +40,5 @@ uint32 cl_trialdivision (const cl_I& n, uint32 d1, uint32 d2)
        }
        return 0;
 }
+
+}  // namespace cln