]> www.ginac.de Git - cln.git/blob - 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
1 // abs().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #include "cln/lfloat.h"
8
9
10 // Implementation.
11
12 #include "base/cl_inline.h"
13 #include "float/lfloat/elem/cl_LF_minusp.cc"
14
15 namespace cln {
16
17 const cl_LF CL_FLATTEN abs (const cl_LF& x)
18 {
19 // x<0 -> (- x), x>=0 -> x
20         if (minusp_inline(x)) return -x; else return x;
21 }
22
23 }  // namespace cln