]> www.ginac.de Git - cln.git/blob - src/float/lfloat/misc/cl_LF_signum.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / float / lfloat / misc / cl_LF_signum.cc
1 // signum().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/lfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_LF.h"
13 #include "cl_LF_impl.h"
14
15 #include "cl_inline.h"
16 #include "cl_LF_minusp.cc"
17 #include "cl_LF_zerop.cc"
18
19 namespace cln {
20
21 CL_INLINE2 const cl_LF CL_INLINE2_DECL(signum) (const cl_LF& x)
22 {
23         if (zerop_inline(x)) { return x; } // x=0 -> 0.0
24         else // je nach Vorzeichen von x
25         { return encode_LF1s(TheLfloat(x)->sign,TheLfloat(x)->len); }
26 }
27
28 }  // namespace cln