Definition at line 202 of file u8x24.h.
202 {
205 if (msb < 0)
return u8x24();
206
211 } else {
213 }
214
215
216 constexpr int IFRAC = 24;
217 constexpr u64 c0 = 24189248ULL;
218 constexpr i64 c1 = -11728384LL;
219 constexpr i64 c2 = 6098176LL;
220 constexpr i64 c3 = -1788416LL;
221
223
225 acc = c2 + ((acc * t24) >> IFRAC);
226 acc = c1 + ((acc * t24) >> IFRAC);
227 acc =
static_cast<i64>(c0) + ((acc * t24) >> IFRAC);
228 i64 frac_part = (acc * t24) >> IFRAC;
229
230
233 }
static constexpr FASTLED_FORCE_INLINE u8x24 from_raw(u32 raw) FL_NOEXCEPT
static constexpr int FRAC_BITS
constexpr u8x24() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE int highest_bit(u32 v) FL_NOEXCEPT
static constexpr i32 SCALE
expected< T, E > result
Alias for expected (Rust-style naming)
References u8x24(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, FRAC_BITS, from_raw(), highest_bit(), SCALE, fl::t, and fl::x.
Referenced by pow().