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

◆ exp2_neg()

u32 fl::detail::gamma_constexpr::exp2_neg ( u32 pos_val)
constexpr

Definition at line 146 of file gamma_lut.h.

146 {
147 return ((pos_val >> FRAC) + 1) >= 32 ? 0
148 : static_cast<u32>(
149 exp2_pos(SCALE - (pos_val & (SCALE - 1)))
150 >> ((pos_val >> FRAC) + 1)
151 );
152}
constexpr u32 exp2_pos(u32 x) FL_NOEXCEPT
Definition gamma_lut.h:136

References exp2_pos(), FL_NOEXCEPT, FRAC, and SCALE.

Referenced by exp2_fp().

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