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