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

◆ operator*() [2/2]

FASTLED_FORCE_INLINE u0x32 fl::u0x32::operator* ( u32 scalar) const
inlineconstexpr

Definition at line 124 of file u0x32.h.

124 {
125 // UQ32 * scalar with saturation to prevent overflow
126 return (static_cast<u64>(mValue) * scalar > 0xFFFFFFFFULL)
127 ? from_raw(0xFFFFFFFFU)
128 : from_raw(static_cast<u32>(static_cast<u64>(mValue) * scalar));
129 }
static constexpr FASTLED_FORCE_INLINE u0x32 from_raw(u32 raw) FL_NO_EXCEPT
Definition u0x32.h:66
u32 mValue
Definition u0x32.h:163
fl::u64 u64
Definition stdint.h:220

References u0x32(), FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, from_raw(), and mValue.

+ Here is the call graph for this function: