| 3288 | |
| 3289 | template <unsigned Digits10, class ExponentType, class Allocator> |
| 3290 | inline 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 | |
| 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) |
no test coverage detected