]> www.ginac.de Git - cln.git/blobdiff - src/integer/misc/cl_I_oddp.cc
* */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in
[cln.git] / src / integer / misc / cl_I_oddp.cc
index fedaf17b89607113cfc2af22a6c72572ca89d4cc..27b6ac87e6af0e0056d890a455d2d69edc8cacb3 100644 (file)
 
 namespace cln {
 
-cl_boolean oddp (const cl_I& x)
+bool oddp (const cl_I& x)
 {
        if (fixnump(x)) {
                // Fixnum: Bit 0 abprüfen
                if (x.word & bit(cl_value_shift))
-                       return cl_true;
+                       return true;
                else
-                       return cl_false;
+                       return false;
        } else {
                // Bignum: Bit 0 im letzten Digit abprüfen
                if (lspref(BN_LSDptr(x),0) & bit(0))
-                       return cl_true;
+                       return true;
                else
-                       return cl_false;
+                       return false;
        }
 }