]> www.ginac.de Git - cln.git/blobdiff - src/float/lfloat/misc/cl_LF_abs.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / float / lfloat / misc / cl_LF_abs.cc
index be8cb560375d5b0075900320a5a9798660ebbf80..b46bdad653ae22936c93ea8881943bf257d7a353 100644 (file)
@@ -9,16 +9,15 @@
 
 // Implementation.
 
-#undef MAYBE_INLINE
-#define MAYBE_INLINE inline
+#include "cl_inline.h"
 #include "cl_LF_minusp.cc"
 
 namespace cln {
 
-const cl_LF abs (const cl_LF& x)
+const cl_LF CL_FLATTEN abs (const cl_LF& x)
 {
 // x<0 -> (- x), x>=0 -> x
-       if (minusp(x)) return -x; else return x;
+       if (minusp_inline(x)) return -x; else return x;
 }
 
 }  // namespace cln