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

◆ clamp()

static constexpr FASTLED_FORCE_INLINE u0x32 fl::u0x32::clamp ( u0x32 val,
u0x32 low,
u0x32 high )
inlinestaticconstexpr

Definition at line 149 of file u0x32.h.

149 {
150 return max(low, min(val, high));
151 }
static constexpr FASTLED_FORCE_INLINE u0x32 min(u0x32 a, u0x32 b) FL_NOEXCEPT
Definition u0x32.h:141
static constexpr FASTLED_FORCE_INLINE u0x32 max(u0x32 a, u0x32 b) FL_NOEXCEPT
Definition u0x32.h:145

References u0x32(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, max(), and min().

+ Here is the call graph for this function: