| 3320 | |
| 3321 | template <unsigned Digits10, class ExponentType, class Allocator> |
| 3322 | inline 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 | |
| 3334 | template <unsigned Digits10, class ExponentType, class Allocator> |
| 3335 | inline ExponentType eval_ilogb(const cpp_dec_float<Digits10, ExponentType, Allocator>& val) |
nothing calls this directly
no test coverage detected