Definition at line 186 of file u16x16.h.
186 {
187 constexpr u16x16 one(1.0f);
188 if (
exp.mValue == 0)
return one;
189 if (base == one) return one;
190 if (base.mValue == 0)
return u16x16();
191
192
193 constexpr u32 kOneRaw =
static_cast<u32
>(
SCALE);
194 if (base.mValue >= (kOneRaw - 2u) && base.mValue <= kOneRaw) {
195 return one;
196 }
198 }
static FASTLED_FORCE_INLINE u16x16 exp2_fp(u16x16 x) FL_NOEXCEPT
static FASTLED_FORCE_INLINE u16x16 log2_fp(u16x16 x) FL_NOEXCEPT
constexpr u16x16() FL_NOEXCEPT=default
static constexpr i32 SCALE
enable_if< is_fixed_point< T >::value, T >::type exp(T x) FL_NOEXCEPT
References u16x16(), fl::exp(), exp2_fp(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, log2_fp(), and SCALE.