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

◆ clamp()

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

Definition at line 141 of file u8x24.h.

141 {
142 return x < lo ? lo : (x > hi ? hi : x);
143 }

References u8x24(), 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: