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

Function fabs_impl_float

src/fl/math/math.cpp.hpp:355–357  ·  view source on GitHub ↗

Absolute value: pure arithmetic; libm path unnecessary, same on both.

Source from the content-addressed store, hash-verified

353
354// Absolute value: pure arithmetic; libm path unnecessary, same on both.
355float fabs_impl_float(float value) {
356 return value < 0.0f ? -value : value;
357}
358
359double fabs_impl_double(double value) {
360 return value < 0.0 ? -value : value;

Callers 2

fabsfFunction · 0.85
fabsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected