FastLED 3.10.6
Loading...
Searching...
No Matches

◆ lround_impl_float()

long fl::lround_impl_float ( float value)

Definition at line 444 of file math.cpp.hpp.

444 {
445#if FL_MATH_USE_LIBM
446 return ::lroundf(value);
447#else
448 if (value >= 0.0f) return static_cast<long>(value + 0.5f);
449 return static_cast<long>(value - 0.5f);
450#endif
451}
constexpr int type_rank< T >::value

References type_rank< T >::value.

Referenced by lroundf(), and round_impl_float().

+ Here is the caller graph for this function: