]> www.ginac.de Git - cln.git/blob - src/float/sfloat/elem/cl_SF_plusp.cc
7fe1a0ce87e542e2af6b2ca003aea9225e5560e1
[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 "cl_sfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_SF.h"
13
14 #undef MAYBE_INLINE
15 #define MAYBE_INLINE inline
16 #include "cl_SF_minusp.cc"
17 #include "cl_SF_zerop.cc"
18
19 MAYBE_INLINE2
20 cl_boolean plusp (const cl_SF& x)
21 {
22         if (minusp(x))
23                 return cl_false; // x<0 -> nein
24         elif (zerop(x))
25                 return cl_false; // x=0 -> nein
26         else
27                 return cl_true; // sonst ist x>0.
28 }