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

◆ clamp()

FASTLED_FORCE_INLINE s16x16x4 fl::s16x16x4::clamp ( s16x16x4 lo,
s16x16x4 hi ) const
inline

Clamp to [lo, hi].

Definition at line 104 of file s16x16x4.h.

104 {
105 return max(lo).min(hi);
106 }
FASTLED_FORCE_INLINE s16x16x4 min(s16x16x4 b) const
Element-wise minimum.
Definition s16x16x4.h:94
FASTLED_FORCE_INLINE s16x16x4 max(s16x16x4 b) const
Element-wise maximum.
Definition s16x16x4.h:99

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

+ Here is the call graph for this function: