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

◆ exp2_pos()

u32 fl::detail::gamma_constexpr::exp2_pos ( u32 x)
constexpr

Definition at line 136 of file gamma_lut.h.

136 {
137 return (x >> FRAC) >= 8 ? 0xFFFFFFFFu
138 : static_cast<u32>(
139 (static_cast<u64>(SCALE << (x >> FRAC)) *
140 exp2_frac(x & (SCALE - 1))) >> FRAC
141 );
142}
constexpr u64 exp2_frac(u64 fr) FL_NOEXCEPT
Definition gamma_lut.h:131
fl::u64 u64
Definition s16x16x4.h:221

References exp2_frac(), FL_NOEXCEPT, FRAC, SCALE, and fl::x.

Referenced by exp2_fp(), and exp2_neg().

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