]> www.ginac.de Git - cln.git/blob - src/float/dfloat/elem/cl_DF_plusp.cc
Don't generate cln.texi from cln.tex any more.
[cln.git] / src / float / dfloat / elem / cl_DF_plusp.cc
1 // plusp().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/dfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_DF.h"
13
14 #undef MAYBE_INLINE
15 #define MAYBE_INLINE inline
16 #include "cl_DF_minusp.cc"
17 #include "cl_DF_zerop.cc"
18
19 namespace cln {
20
21 MAYBE_INLINE2
22 bool plusp (const cl_DF& x)
23 {
24         if (minusp(x))
25                 return false; // x<0 -> nein
26         elif (zerop(x))
27                 return false; // x=0 -> nein
28         else
29                 return true; // sonst ist x>0.
30 }
31
32 }  // namespace cln