]> www.ginac.de Git - cln.git/blobdiff - src/numtheory/cl_IF.h
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / numtheory / cl_IF.h
index 2d632db5c7030390c37f89e31ae34a1948b264e2..9be0f14766d83eecc7e1ef02ad3c8a8f292eb847 100644 (file)
@@ -3,8 +3,10 @@
 #ifndef _CL_IF_H
 #define _CL_IF_H
 
-#include "cl_number.h"
-#include "cl_integer.h"
+#include "cln/number.h"
+#include "cln/integer.h"
+
+namespace cln {
 
 // Table of primes > 2, < 2^16
 const uint32 cl_small_prime_table_limit = 65536;
@@ -46,7 +48,8 @@ extern uint32 cl_trialdivision (const cl_I& n, uint32 d1, uint32 d2);
 // Returns true if n looks like a prime (with error probability < 4^-count).
 // Returns false if n is definitely composite, and then sets factor = some
 // nontrivial factor or 0.
-extern cl_boolean cl_miller_rabin_test (const cl_I& n, int count, cl_I* factor);
+extern bool cl_miller_rabin_test (const cl_I& n, int count, cl_I* factor);
 
+}  // namespace cln
 
 #endif /* _CL_IF_H */