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

◆ operator/() [2/2]

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

Definition at line 106 of file s0x32.h.

106 {
107 // Q31 / Q31: shift dividend left 31 bits then divide
108 // (a / 2^31) / (b / 2^31) = a / b → need (a << 31) / b
109 return from_raw(static_cast<i32>(
110 (static_cast<i64>(mValue) << 31) / b.mValue));
111 }
static constexpr FASTLED_FORCE_INLINE s0x32 from_raw(i32 raw) FL_NOEXCEPT
Definition s0x32.h:66
i32 mValue
Definition s0x32.h:174
fl::i64 i64
Definition s16x16x4.h:222

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

+ Here is the call graph for this function: