FastLED 3.9.15
Loading...
Searching...
No Matches

◆ pow_fp()

u32 fl::detail::gamma_constexpr::pow_fp ( u32 base_raw,
u32 exp_raw )
constexpr

Definition at line 161 of file gamma_lut.h.

161 {
162 return base_raw == 0 ? 0
163 : exp_raw == 0 ? SCALE
164 : base_raw == SCALE ? SCALE
165 : exp2_fp(static_cast<i32>(
166 (static_cast<i64>(exp_raw) *
167 static_cast<i64>(log2_fp(base_raw))) >> FRAC
168 ));
169}
constexpr i32 log2_fp(u32 val) FL_NOEXCEPT
Definition gamma_lut.h:110
constexpr u32 exp2_fp(i32 x) FL_NOEXCEPT
Definition gamma_lut.h:154
fl::i64 i64
Definition s16x16x4.h:222

References exp2_fp(), FL_NOEXCEPT, FRAC, log2_fp(), and SCALE.

Referenced by eval(), and eval16().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: