]> www.ginac.de Git - cln.git/blob - src/integer/elem/cl_I_plusp.cc
* */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in
[cln.git] / src / integer / elem / cl_I_plusp.cc
1 // plusp().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/integer.h"
8
9
10 // Implementation.
11
12 #define minusp inline_minusp
13 #define zerop inline_zerop
14 #include "cl_I.h"
15 #undef zerop
16 #undef minusp
17
18 namespace cln {
19
20 bool plusp (const cl_I& x)
21 {
22         if (inline_minusp(x))
23                 return false; // x<0 -> nein
24         elif (inline_zerop(x))
25                 return false; // x=0 -> nein
26         else
27                 return true; // sonst ist x>0.
28 }
29
30 }  // namespace cln