FastLED 3.9.15
Loading...
Searching...
No Matches

◆ in_unsigned_range()

template<typename IntT>
bool fl::detail::in_unsigned_range ( IntT n,
u32 max_u )
constexpr

Definition at line 39 of file traits.h.

39 {
40 return static_cast<i32>(fl::is_signed<IntT>::value ? (n >= IntT(0)) : 1) &&
41 static_cast<u32>(n) <= max_u;
42}

References FL_NOEXCEPT, and fl::fl::is_signed< T >::value.

Referenced by fl::detail::int_to_fixed< IntBits, FracBits, false >::from_unsigned(), and fl::detail::int_to_fixed< IntBits, FracBits, true >::from_unsigned().

+ Here is the caller graph for this function: