]> www.ginac.de Git - cln.git/blob - src/float/lfloat/elem/cl_LF_plusp.cc
660297866ed2235ba847aebbd6a905ea30d6bcb6
[cln.git] / src / float / lfloat / elem / cl_LF_plusp.cc
1 // plusp().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_lfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_LF.h"
13 #include "cl_LF_impl.h"
14
15 #undef MAYBE_INLINE
16 #define MAYBE_INLINE inline
17 #include "cl_LF_minusp.cc"
18 #include "cl_LF_zerop.cc"
19
20 MAYBE_INLINE2
21 cl_boolean plusp (const cl_LF& x)
22 {
23         if (minusp(x))
24                 return cl_false; // x<0 -> nein
25         elif (zerop(x))
26                 return cl_false; // x=0 -> nein
27         else
28                 return cl_true; // sonst ist x>0.
29 }