Definition at line 173 of file u24x8.h.
173 {
174 if (base.mValue == 0)
return u24x8();
175 constexpr u24x8 one(1.0f);
176 if (
exp.mValue == 0)
return one;
177 if (base == one) return one;
178
179
180 constexpr u32 kOneRaw =
static_cast<u32
>(
SCALE);
181 if (base.mValue >= (kOneRaw - 2u) && base.mValue <= kOneRaw) {
182 return one;
183 }
185 }
constexpr u24x8() FL_NOEXCEPT=default
static FASTLED_FORCE_INLINE u24x8 exp2_fp(u24x8 x) FL_NOEXCEPT
static FASTLED_FORCE_INLINE u24x8 log2_fp(u24x8 x) FL_NOEXCEPT
static constexpr i32 SCALE
enable_if< is_fixed_point< T >::value, T >::type exp(T x) FL_NOEXCEPT
References u24x8(), fl::exp(), exp2_fp(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, log2_fp(), and SCALE.