| 308 | |
| 309 | // Remainder after division: mod(5.5, 2.0) → 1.5 |
| 310 | static constexpr FASTLED_FORCE_INLINE fixed_point mod(fixed_point a, fixed_point b) FL_NOEXCEPT { |
| 311 | return from_raw(Base::mod(a, b).raw()); |
| 312 | } |
| 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 { |