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

◆ operator/()

template<typename Derived, int IntBits, int FracBits>
FASTLED_FORCE_INLINE Derived fl::fixed_point_base< Derived, IntBits, FracBits >::operator/ ( Derived b) const
inlineconstexpr

Definition at line 73 of file base.h.

73 {
74 return Derived::from_raw(static_cast<raw_type>(
75 (static_cast<intermediate_type>(mValue) * (static_cast<intermediate_type>(1) << FRAC_BITS)) / b.mValue));
76 }
typename traits::intermediate_type intermediate_type
Definition base.h:33
static constexpr int FRAC_BITS
Definition base.h:38
typename traits::raw_type raw_type
Definition base.h:31
raw_type mValue
Definition base.h:41

References FASTLED_FORCE_INLINE, FRAC_BITS, and mValue.