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

◆ operator+()

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

Definition at line 83 of file u0x32.h.

83 {
84 // Saturating add to prevent overflow
85 u32 result = mValue + b.mValue;
86 if (result < mValue) return from_raw(0xFFFFFFFFU); // Overflow, clamp to max
87 return from_raw(result);
88 }
static constexpr FASTLED_FORCE_INLINE u0x32 from_raw(u32 raw) FL_NOEXCEPT
Definition u0x32.h:66
u32 mValue
Definition u0x32.h:163
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

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

+ Here is the call graph for this function: