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

◆ operator*() [1/2]

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 68 of file base.h.

68 {
69 return Derived::from_raw(static_cast<raw_type>(
70 (static_cast<intermediate_type>(mValue) * b.mValue) >> FRAC_BITS));
71 }
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.