236 {
240
241
243
244 u32 int_pow =
static_cast<u32
>(
SCALE) << n;
245
246
247 constexpr int IFRAC = 24;
248 constexpr u64 d0 = 11629376ULL;
249 constexpr u64 d1 = 4038400ULL;
250 constexpr u64 d2 = 895232ULL;
251 constexpr u64 d3 = 214016ULL;
252
253 u64 fr24 =
static_cast<u64>(fr.mValue);
254
256 acc = d2 + ((acc * fr24) >> IFRAC);
257 acc = d1 + ((acc * fr24) >> IFRAC);
258 acc = d0 + ((acc * fr24) >> IFRAC);
259 constexpr u64 one24 = 1ULL << IFRAC;
260 u64 frac_pow24 = one24 + ((acc * fr24) >> IFRAC);
261
262
265 }
static constexpr FASTLED_FORCE_INLINE u8x24 from_raw(u32 raw) FL_NOEXCEPT
static constexpr int FRAC_BITS
static constexpr int INT_BITS
constexpr u8x24() FL_NOEXCEPT=default
static constexpr i32 SCALE
static constexpr FASTLED_FORCE_INLINE u8x24 floor(u8x24 x) FL_NOEXCEPT
expected< T, E > result
Alias for expected (Rust-style naming)