]> www.ginac.de Git - cln.git/blob - src/float/lfloat/division/cl_LF_fceil.cc
* All Files have been modified for inclusion of namespace cln;
[cln.git] / src / float / lfloat / division / cl_LF_fceil.cc
1 // fceiling().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/lfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_LF.h"
13
14 #undef MAYBE_INLINE
15 #define MAYBE_INLINE inline
16 #include "cl_LF_minusp.cc"
17
18 namespace cln {
19
20 const cl_LF fceiling (const cl_LF& x)
21 {
22         if (minusp(x))
23                 return ftruncate(x);
24         else
25                 return futruncate(x);
26 }
27
28 }  // namespace cln