PageRenderTime 57ms CodeModel.GetById 40ms app.highlight 8ms RepoModel.GetById 3ms 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
 3// General includes.
 4#include "base/cl_sysdep.h"
 5
 6// Specification.
 7#include "cln/dfloat.h"
 8
 9
10// Implementation.
11
12#include "float/dfloat/cl_DF.h"
13
14/* For inline version of minusp */
15#include "base/cl_inline.h"
16#include "float/dfloat/elem/cl_DF_minusp.cc"
17
18namespace cln {
19
20const cl_DF CL_FLATTEN fceiling (const cl_DF& x)
21{
22	if (minusp_inline(x))
23		return ftruncate(x);
24	else
25		return futruncate(x);
26}
27
28}  // namespace cln