]> www.ginac.de Git - cln.git/blobdiff - 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
index eae4705f019fe1375fa4471160124fa0bdd71810..a658e186e0cd1f248fa834e3c523d5bafd5b9f8b 100644 (file)
 #include "cl_LF.h"
 #include "cl_LF_impl.h"
 
-#undef MAYBE_INLINE
-#define MAYBE_INLINE inline
+#include "cl_inline.h"
 #include "cl_LF_minusp.cc"
 #include "cl_LF_zerop.cc"
 
 namespace cln {
 
-MAYBE_INLINE2
-const cl_LF signum (const cl_LF& x)
+CL_INLINE2 const cl_LF CL_INLINE2_DECL(signum) (const cl_LF& x)
 {
-       if (zerop(x)) { return x; } // x=0 -> 0.0
+       if (zerop_inline(x)) { return x; } // x=0 -> 0.0
        else // je nach Vorzeichen von x
        { return encode_LF1s(TheLfloat(x)->sign,TheLfloat(x)->len); }
 }