255 {
259
261
262 u32 int_pow = (
SCALE) << n;
263
264
265
266 constexpr int IFRAC = 24;
267 constexpr u64 d0 = 11629376ULL;
268 constexpr u64 d1 = 4038400ULL;
269 constexpr u64 d2 = 895232ULL;
270 constexpr u64 d3 = 214016ULL;
271
272
274
275
277 acc = d2 + ((acc * fr24) >> IFRAC);
278 acc = d1 + ((acc * fr24) >> IFRAC);
279 acc = d0 + ((acc * fr24) >> IFRAC);
280 constexpr u64 one24 = 1ULL << IFRAC;
281 u64 frac_pow24 = one24 + ((acc * fr24) >> IFRAC);
282
283
284 u32 frac_pow16 =
static_cast<u32
>(frac_pow24 >> (IFRAC -
FRAC_BITS));
287 }
static constexpr FASTLED_FORCE_INLINE u16x16 floor(u16x16 x) FL_NOEXCEPT
static constexpr int INT_BITS
constexpr u16x16() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE u16x16 from_raw(u32 raw) FL_NOEXCEPT
static constexpr i32 SCALE
static constexpr int FRAC_BITS
expected< T, E > result
Alias for expected (Rust-style naming)