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

◆ operator/()

FASTLED_FORCE_INLINE u8x8 fl::u8x8::operator/ ( u8x8 b) const
inlineconstexpr

Definition at line 70 of file u8x8.h.

70 {
71 return b.mValue == 0 ? u8x8() : from_raw(static_cast<u16>(
72 (static_cast<u32>(mValue) * (static_cast<u32>(1) << FRAC_BITS)) / b.mValue));
73 }
static constexpr int FRAC_BITS
Definition u8x8.h:22
u16 mValue
Definition u8x8.h:191
constexpr u8x8() FL_NO_EXCEPT=default
static constexpr FASTLED_FORCE_INLINE u8x8 from_raw(u16 raw) FL_NO_EXCEPT
Definition u8x8.h:53

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

+ Here is the call graph for this function: