353 {
359 i32 int_pow;
360 if (n >= 0) {
361 int_pow =
static_cast<i32
>(
SCALE) << n;
362 } else {
363 int_pow =
static_cast<i32
>(
SCALE) >> (-n);
364 }
365
366
367 constexpr int IFRAC = 24;
368 constexpr i64 d0 = 11629376LL;
369 constexpr i64 d1 = 4038400LL;
370 constexpr i64 d2 = 895232LL;
371 constexpr i64 d3 = 214016LL;
372
373 i64 fr24 =
static_cast<i64>(fr.mValue);
374
376 acc = d2 + ((acc * fr24) >> IFRAC);
377 acc = d1 + ((acc * fr24) >> IFRAC);
378 acc = d0 + ((acc * fr24) >> IFRAC);
379 constexpr i64 one24 = 1LL << IFRAC;
380 i64 frac_pow24 = one24 + ((acc * fr24) >> IFRAC);
381
385 }
constexpr FASTLED_FORCE_INLINE s8x24 floor() const FL_NOEXCEPT
static constexpr i32 SCALE
static constexpr int INT_BITS
static constexpr FASTLED_FORCE_INLINE s8x24 from_raw(i32 raw) FL_NOEXCEPT
constexpr s8x24() FL_NOEXCEPT=default
static constexpr int FRAC_BITS
expected< T, E > result
Alias for expected (Rust-style naming)