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

◆ log2_t()

u32 fl::detail::gamma_constexpr::log2_t ( u32 val,
int msb )
constexpr

Definition at line 80 of file gamma_lut.h.

80 {
81 return msb >= FRAC
82 ? (val >> (msb - FRAC)) - SCALE
83 : (val << (FRAC - msb)) - SCALE;
84}

References FL_NOEXCEPT, FRAC, and SCALE.

Referenced by log2_with_msb().

+ Here is the caller graph for this function: