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

Function round_impl_float

src/fl/math/math.cpp.hpp:384–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382#pragma push_macro("round")
383#undef round
384float round_impl_float(float value) {
385#if FL_MATH_USE_LIBM
386 return ::roundf(value);
387#else
388 return static_cast<float>(lround_impl_float(value));
389#endif
390}
391
392double round_impl_double(double value) {
393#if FL_MATH_USE_LIBM

Callers 2

roundfFunction · 0.85
roundFunction · 0.85

Calls 2

roundfFunction · 0.85
lround_impl_floatFunction · 0.85

Tested by

no test coverage detected