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

◆ scale16by8_nozero()

FL_ALWAYS_INLINE u16 fl::anonymous_namespace{five_bit_hd_gamma.cpp.hpp}::five_bit_impl::scale16by8_nozero ( u16 i,
u16 scale_plus_one )

Definition at line 30 of file five_bit_hd_gamma.cpp.hpp.

30 {
31 return static_cast<u16>((static_cast<u32>(i) * scale_plus_one) >> 8);
32}

References FL_ALWAYS_INLINE, and scale16by8_nozero().

Referenced by five_bit_pixel(), and scale16by8_nozero().

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