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

Function eval_trunc

extern/boost/boost/multiprecision/cpp_dec_float.hpp:3322–3332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)
3323{
3324 if (x.isint() || !(x.isfinite)())
3325 {
3326 result = x;
3327 if ((x.isnan)())
3328 errno = EDOM;
3329 return;
3330 }
3331 result = x.extract_integer_part();
3332}
3333
3334template <unsigned Digits10, class ExponentType, class Allocator>
3335inline ExponentType eval_ilogb(const cpp_dec_float<Digits10, ExponentType, Allocator>& val)

Callers

nothing calls this directly

Calls 2

isintMethod · 0.80
extract_integer_partMethod · 0.80

Tested by

no test coverage detected