]> www.ginac.de Git - cln.git/blob - src/float/ffloat/misc/cl_FF_sign.cc
Don't generate cln.texi from cln.tex any more.
[cln.git] / src / float / ffloat / misc / cl_FF_sign.cc
1 // float_sign().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/ffloat.h"
8
9
10 // Implementation.
11
12 #include "cl_FF.h"
13
14 #undef MAYBE_INLINE
15 #define MAYBE_INLINE inline
16 #include "cl_FF_minusp.cc"
17
18 namespace cln {
19
20 MAYBE_INLINE2
21 const cl_FF float_sign (const cl_FF& x)
22 {
23 // Methode: x>=0 -> Ergebnis 1.0; x<0 -> Ergebnis -1.0
24         return (!minusp(x) ? cl_FF_1 : cl_FF_minus1);
25 }
26
27 }  // namespace cln