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

Function eval_floor

extern/boost/boost/multiprecision/cpp_dec_float.hpp:3290–3303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3288
3289template <unsigned Digits10, class ExponentType, class Allocator>
3290inline void eval_floor(cpp_dec_float<Digits10, ExponentType, Allocator>& result, const cpp_dec_float<Digits10, ExponentType, Allocator>& x)
3291{
3292 result = x;
3293 if (!(x.isfinite)() || x.isint())
3294 {
3295 if ((x.isnan)())
3296 errno = EDOM;
3297 return;
3298 }
3299
3300 if (x.isneg())
3301 result -= cpp_dec_float<Digits10, ExponentType, Allocator>::one();
3302 result = result.extract_integer_part();
3303}
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)

Callers 4

generic_interconvertFunction · 0.85
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