FastLED 3.10.6
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::FL_NO_EXCEPT, FRAC, and SCALE.

Referenced by log2_with_msb().

+ Here is the caller graph for this function: