MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / eval_ceil

Function eval_ceil

extern/boost/boost/multiprecision/cpp_dec_float.hpp:3306–3319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3304
3305template <unsigned Digits10, class ExponentType, class Allocator>
3306inline void eval_ceil(cpp_dec_float<Digits10, ExponentType, Allocator>& result, const cpp_dec_float<Digits10, ExponentType, Allocator>& x)
3307{
3308 result = x;
3309 if (!(x.isfinite)() || x.isint())
3310 {
3311 if ((x.isnan)())
3312 errno = EDOM;
3313 return;
3314 }
3315
3316 if (!x.isneg())
3317 result += cpp_dec_float<Digits10, ExponentType, Allocator>::one();
3318 result = result.extract_integer_part();
3319}
3320
3321template <unsigned Digits10, class ExponentType, class Allocator>
3322inline void eval_trunc(cpp_dec_float<Digits10, ExponentType, Allocator>& result, const cpp_dec_float<Digits10, ExponentType, Allocator>& x)

Callers 3

eval_fmodFunction · 0.85
eval_truncFunction · 0.85
eval_roundFunction · 0.85

Calls 3

isintMethod · 0.80
isnegMethod · 0.80
extract_integer_partMethod · 0.80

Tested by

no test coverage detected