FastLED 3.10.8
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 }
i32 mValue
Definition s0x32.h:174
static constexpr FASTLED_FORCE_INLINE s0x32 from_raw(i32 raw) FL_NO_EXCEPT
Definition s0x32.h:66
fl::i64 i64
Definition stdint.h:221

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

+ Here is the call graph for this function: