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

◆ clamp()

static constexpr FASTLED_FORCE_INLINE u16x16 fl::u16x16::clamp ( u16x16 x,
u16x16 lo,
u16x16 hi )
inlinestaticconstexpr

Definition at line 150 of file u16x16.h.

150 {
151 return x < lo ? lo : (x > hi ? hi : x);
152 }

References u16x16(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, and fl::x.

Referenced by smoothstep().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: