242 {
247 u32 int_pow;
248 int_pow =
static_cast<u32
>(
SCALE) << n;
249
250
251 constexpr int IFRAC = 16;
252 constexpr u64 d0 = 45427ULL;
253 constexpr u64 d1 = 15775ULL;
254 constexpr u64 d2 = 3497ULL;
255 constexpr u64 d3 = 836ULL;
256
258
260 acc = d2 + ((acc * fr16) >> IFRAC);
261 acc = d1 + ((acc * fr16) >> IFRAC);
262 acc = d0 + ((acc * fr16) >> IFRAC);
263 constexpr u64 one16 = 1ULL << IFRAC;
264 u64 frac_pow16 = one16 + ((acc * fr16) >> IFRAC);
265
266 u32 frac_pow8 =
static_cast<u32
>(frac_pow16 >> (IFRAC -
FRAC_BITS));
270 }
static constexpr int INT_BITS
static constexpr FASTLED_FORCE_INLINE u24x8 from_raw(u32 raw) FL_NOEXCEPT
constexpr u24x8() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE u24x8 floor(u24x8 x) FL_NOEXCEPT
static constexpr i32 SCALE
static constexpr int FRAC_BITS
expected< T, E > result
Alias for expected (Rust-style naming)