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

Function eval_ilogb

extern/boost/boost/multiprecision/cpp_dec_float.hpp:3335–3349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3333
3334template <unsigned Digits10, class ExponentType, class Allocator>
3335inline ExponentType eval_ilogb(const cpp_dec_float<Digits10, ExponentType, Allocator>& val)
3336{
3337 if (val.iszero())
3338 return (std::numeric_limits<typename cpp_dec_float<Digits10, ExponentType, Allocator>::exponent_type>::min)();
3339 if ((val.isinf)())
3340 return INT_MAX;
3341 if ((val.isnan)())
3342#ifdef FP_ILOGBNAN
3343 return FP_ILOGBNAN;
3344#else
3345 return INT_MAX;
3346#endif
3347 // Set result, to the exponent of val:
3348 return val.order();
3349}
3350template <unsigned Digits10, class ExponentType, class Allocator, class ArgType>
3351inline void eval_scalbn(cpp_dec_float<Digits10, ExponentType, Allocator>& result, const cpp_dec_float<Digits10, ExponentType, Allocator>& val, ArgType e_)
3352{

Callers 4

eval_logbFunction · 0.85
type ilogbMethod · 0.85
trig.hppFile · 0.85
eval_atanFunction · 0.85

Calls 2

iszeroMethod · 0.80
orderMethod · 0.45

Tested by

no test coverage detected