MCPcopy Create free account
hub / github.com/FastLED/FastLED / mod

Method mod

src/fl/math/fixed_point.h:310–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

modFunction · 0.85
rawMethod · 0.45

Tested by

no test coverage detected