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

Function abs

src/fl/math/math.h:61–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59// ===== Basic: min, max, abs, clamp ===========================================
60
61template <typename T> constexpr inline T abs(T value) FL_NOEXCEPT {
62 return value < 0 ? -value : value;
63}
64
65FL_DISABLE_WARNING_PUSH
66FL_DISABLE_WARNING(sign-compare)

Callers 15

traverseGridSegmentFloatFunction · 0.70
traverseGridSegment16Function · 0.70
traverseGridSegment32Function · 0.70
traverseGridSegmentFunction · 0.70
absMethod · 0.70
fixed_point.hFile · 0.70
almost_equalFunction · 0.70
sizeMethod · 0.50
calculateStepsMethod · 0.50
drawLineCoreFunction · 0.50
drawAALineMethod · 0.50
processMethod · 0.50

Calls

no outgoing calls

Tested by 7

_analyze_crash_typeFunction · 0.40
test_cachedFunction · 0.40
generateSyntheticFFTFunction · 0.40
test_abs_sign_implFunction · 0.40
operator==Method · 0.40
operator==Function · 0.40