FastLED 3.10.6
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_NO_EXCEPT
Definition gamma_lut.h:131
fl::u64 u64
Definition stdint.h:220

References exp2_frac(), fl::FL_NO_EXCEPT, 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: