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

Method floor

src/fl/math/fixed_point.h:315–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 12

convertAudioSamplesMethod · 0.45
getTimestampMethod · 0.45
enhanceTimestampMethod · 0.45
formatTimeMethod · 0.45
processMethod · 0.45
updateCanvasMethod · 0.45
calculateInputWidthFunction · 0.45
formatTimeFunction · 0.45

Calls 2

floorFunction · 0.85
rawMethod · 0.45

Tested by

no test coverage detected