| 313 | |
| 314 | // Round down to the nearest integer: floor(3.7) → 3.0, floor(-1.2) → -2.0 |
| 315 | static constexpr FASTLED_FORCE_INLINE fixed_point floor(fixed_point x) FL_NOEXCEPT { |
| 316 | return from_raw(Base::floor(x).raw()); |
| 317 | } |
| 318 | |
| 319 | // Round up to the nearest integer: ceil(3.2) → 4.0, ceil(-1.8) → -1.0 |
| 320 | static constexpr FASTLED_FORCE_INLINE fixed_point ceil(fixed_point x) FL_NOEXCEPT { |
no test coverage detected