PageRenderTime 33ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/cln-1.3.2/src/float/dfloat/division/cl_DF_fceil.cc

#
C++ | 28 lines | 14 code | 9 blank | 5 comment | 1 complexity | 24ed617568f1dcbf2de8167b81834f97 MD5 | raw file
Possible License(s): GPL-2.0
  1. // fceiling().
  2. // General includes.
  3. #include "base/cl_sysdep.h"
  4. // Specification.
  5. #include "cln/dfloat.h"
  6. // Implementation.
  7. #include "float/dfloat/cl_DF.h"
  8. /* For inline version of minusp */
  9. #include "base/cl_inline.h"
  10. #include "float/dfloat/elem/cl_DF_minusp.cc"
  11. namespace cln {
  12. const cl_DF CL_FLATTEN fceiling (const cl_DF& x)
  13. {
  14. if (minusp_inline(x))
  15. return ftruncate(x);
  16. else
  17. return futruncate(x);
  18. }
  19. } // namespace cln