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

◆ lround_impl_double()

long fl::lround_impl_double ( double value)

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

454 {
455#if FL_MATH_USE_LIBM
456 return ::lround(value);
457#else
458 if (value >= 0.0) return static_cast<long>(value + 0.5);
459 return static_cast<long>(value - 0.5);
460#endif
461}
constexpr int type_rank< T >::value

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

Referenced by lround(), and round_impl_double().

+ Here is the caller graph for this function: