]> www.ginac.de Git - cln.git/blob - src/float/sfloat/elem/cl_SF_plusp.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / float / sfloat / elem / cl_SF_plusp.cc
1 // plusp().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/sfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_SF.h"
13
14 /* For inline versions of minusp and zerop */
15 #include "cl_inline.h"
16 #include "cl_SF_minusp.cc"
17 #include "cl_SF_zerop.cc"
18
19 namespace cln {
20
21 CL_INLINE2 bool CL_INLINE2_DECL(plusp) (const cl_SF& x)
22 {
23         if (minusp_inline(x))
24                 return false; // x<0 -> nein
25         elif (zerop_inline(x))
26                 return false; // x=0 -> nein
27         else
28                 return true; // sonst ist x>0.
29 }
30
31 }  // namespace cln