| 3304 | |
| 3305 | template <unsigned Digits10, class ExponentType, class Allocator> |
| 3306 | inline 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 | |
| 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) |
no test coverage detected