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

◆ promote_fp()

template<int IntBits, int FracBits, Sign S>
template<int OtherFrac, typename OtherRawType>
static constexpr RawType fl::fixed_point< IntBits, FracBits, S >::promote_fp ( OtherRawType other_raw)
inlinestaticconstexprprivate

Definition at line 139 of file fixed_point.h.

139 {
140 return static_cast<RawType>(
141 static_cast<PromotionType>(other_raw) << (FracBits - OtherFrac));
142 }
decltype(Base().raw()) RawType
typename conditional<(S==Sign::SIGNED), i64, u64 >::type PromotionType