]> www.ginac.de Git - cln.git/blobdiff - src/float/lfloat/misc/cl_LF_abs.cc
Use paths relative the `src' directory in the #include directives.
[cln.git] / src / float / lfloat / misc / cl_LF_abs.cc
index 11cab15accde229f594321952240df46fb685d7e..6f496804322ca69789ed633204ec8e900967ed6c 100644 (file)
@@ -1,20 +1,23 @@
 // abs().
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
-#include "cl_lfloat.h"
+#include "cln/lfloat.h"
 
 
 // Implementation.
 
-#undef MAYBE_INLINE
-#define MAYBE_INLINE inline
-#include "cl_LF_minusp.cc"
+#include "base/cl_inline.h"
+#include "float/lfloat/elem/cl_LF_minusp.cc"
 
-const cl_LF abs (const cl_LF& x)
+namespace cln {
+
+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