264 {
268
270
271 u32 int_pow = (
SCALE) << n;
272
273
274
275 constexpr int IFRAC = 24;
276 constexpr u64 d0 = 11629376ULL;
277 constexpr u64 d1 = 4038400ULL;
278 constexpr u64 d2 = 895232ULL;
279 constexpr u64 d3 = 214016ULL;
280
281
283
284
286 acc = d2 + ((acc * fr24) >> IFRAC);
287 acc = d1 + ((acc * fr24) >> IFRAC);
288 acc = d0 + ((acc * fr24) >> IFRAC);
289 constexpr u64 one24 = 1ULL << IFRAC;
290 u64 frac_pow24 = one24 + ((acc * fr24) >> IFRAC);
291
292
293 u32 frac_pow16 =
static_cast<u32
>(frac_pow24 >> (IFRAC -
FRAC_BITS));
296 }
static constexpr int INT_BITS
static constexpr FASTLED_FORCE_INLINE u16x16 from_raw(u32 raw) FL_NO_EXCEPT
constexpr u16x16() FL_NO_EXCEPT=default
static constexpr FASTLED_FORCE_INLINE u16x16 floor(u16x16 x) FL_NO_EXCEPT
static constexpr i32 SCALE
static constexpr int FRAC_BITS
expected< T, E > result
Alias for expected (Rust-style naming)