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

◆ clamp()

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

Definition at line 158 of file u12x4.h.

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

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