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

◆ operator-()

FASTLED_FORCE_INLINE u0x32 fl::u0x32::operator- ( u0x32 b) const
inline

Definition at line 90 of file u0x32.h.

90 {
91 // Saturating subtract to prevent underflow
92 if (b.mValue > mValue) return from_raw(0); // Underflow, clamp to 0
93 return from_raw(mValue - b.mValue);
94 }
static constexpr FASTLED_FORCE_INLINE u0x32 from_raw(u32 raw) FL_NOEXCEPT
Definition u0x32.h:66
u32 mValue
Definition u0x32.h:163

References u0x32(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, from_raw(), and mValue.

+ Here is the call graph for this function: