| 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 { |
| 321 | return from_raw(Base::ceil(x).raw()); |
| 322 | } |
| 323 | |
| 324 | // Fractional part: fract(3.75) → 0.75, fract(-1.25) → 0.75 |
| 325 | static constexpr FASTLED_FORCE_INLINE fixed_point fract(fixed_point x) FL_NOEXCEPT { |
no test coverage detected