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

Method abs

src/fl/math/fixed_point.h:330–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328
329 // Absolute value: abs(-2.5) → 2.5
330 static constexpr FASTLED_FORCE_INLINE fixed_point abs(fixed_point x) FL_NOEXCEPT {
331 return from_raw(Base::abs(x).raw());
332 }
333
334 // Sign function: returns -1, 0, or +1.
335 // sign(-3.5) → -1.0, sign(0) → 0.0, sign(2.0) → 1.0

Callers 6

processMethod · 0.45
_calculateDotSizesMethod · 0.45
handleContainerResizeMethod · 0.45
hasAnyLayoutChangeMethod · 0.45
balanceColumnHeightsMethod · 0.45
FL_TEST_FILEFunction · 0.45

Calls 2

absFunction · 0.70
rawMethod · 0.45

Tested by

no test coverage detected