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

Method ceil

src/fl/math/fixed_point.h:320–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

updateCanvasMethod · 0.45

Calls 2

ceilFunction · 0.85
rawMethod · 0.45

Tested by

no test coverage detected