FastLED 3.10.8
Loading...
Searching...
No Matches

◆ lround_impl_float()

long fl::lround_impl_float ( float value)

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

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

References FL_NO_EXCEPT, and type_rank< T >::value.

Referenced by lroundf(), and round_impl_float().

+ Here is the caller graph for this function: