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

◆ clamp()

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

Definition at line 159 of file u16x16.h.

159 {
160 return x < lo ? lo : (x > hi ? hi : x);
161 }

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

Referenced by smoothstep().

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