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

◆ s16x16() [4/5]

template<typename OtherFP>
fl::s16x16::s16x16 ( const OtherFP & other,
typename fl::enable_if<(OtherFP::INT_BITS<=INT_BITS) &&(OtherFP::FRAC_BITS<=FRAC_BITS) &&(OtherFP::INT_BITS !=INT_BITS||OtherFP::FRAC_BITS !=FRAC_BITS), int >::type = 0 )
inlineconstexpr

Definition at line 41 of file s16x16.h.

47 : mValue(static_cast<i32>(
48 static_cast<i64>(other.raw()) << (FRAC_BITS - OtherFP::FRAC_BITS))) {}
static constexpr int FRAC_BITS
Definition s16x16.h:22
i32 mValue
Definition s16x16.h:320
fl::i64 i64
Definition s16x16x4.h:222

References FL_NOEXCEPT, FRAC_BITS, INT_BITS, mValue, and raw().

+ Here is the call graph for this function: