]> www.ginac.de Git - cln.git/blob - src/float/lfloat/misc/cl_LF_sign.cc
* */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in
[cln.git] / src / float / lfloat / misc / cl_LF_sign.cc
1 // float_sign().
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 #undef MAYBE_INLINE
16 #define MAYBE_INLINE inline
17 #include "cl_LF_minusp.cc"
18
19 namespace cln {
20
21 MAYBE_INLINE2
22 const cl_LF float_sign (const cl_LF& x)
23 {
24 // Methode: x>=0 -> Ergebnis 1.0; x<0 -> Ergebnis -1.0
25         return encode_LF1s(TheLfloat(x)->sign,TheLfloat(x)->len);
26 }
27
28 }  // namespace cln