]> www.ginac.de Git - cln.git/blobdiff - src/integer/elem/cl_I_plusp.cc
Replace CL_REQUIRE/CL_PROVIDE(cl_C_ring) with portable code.
[cln.git] / src / integer / elem / cl_I_plusp.cc
index ce47a98f8fe18b6f873d8d6151babcb46ad4c103..0cbd1f5c98a054548b6c624d1e9f0ec320e45346 100644 (file)
@@ -4,7 +4,7 @@
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_integer.h"
+#include "cln/integer.h"
 
 
 // Implementation.
 #undef zerop
 #undef minusp
 
-cl_boolean plusp (const cl_I& x)
+namespace cln {
+
+bool plusp (const cl_I& x)
 {
        if (inline_minusp(x))
-               return cl_false; // x<0 -> nein
+               return false; // x<0 -> nein
        elif (inline_zerop(x))
-               return cl_false; // x=0 -> nein
+               return false; // x=0 -> nein
        else
-               return cl_true; // sonst ist x>0.
+               return true; // sonst ist x>0.
 }
+
+}  // namespace cln