]> www.ginac.de Git - cln.git/blobdiff - src/integer/algebraic/cl_I_rootp.cc
* */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in
[cln.git] / src / integer / algebraic / cl_I_rootp.cc
index e3b2d68b62d0b3bc8ab6f42be2f8562fa2ef77a9..0286c04e98832ef00df83f9c0bb4e3bf4c9ea2b0 100644 (file)
@@ -19,12 +19,12 @@ namespace cln {
 // Falls n >= integer_length(x): NEIN. (Da y>=2, müßte x>=2^n gelten.)
 // Hier also n>0 klein...
 
-cl_boolean rootp (const cl_I& x, uintL n, cl_I* w)
+bool rootp (const cl_I& x, uintL n, cl_I* w)
 {
        if (eq(x,0) || eq(x,1)) // x=0 oder x=1 ?
-         { *w = x; return cl_true; } // ja -> x als Ergebnis
+         { *w = x; return true; } // ja -> x als Ergebnis
        if (n >= integer_length(x))
-         { return cl_false; }
+         { return false; }
        return cl_rootp_aux(x,n,w);
 }