|
FastLED 3.9.15
|
|
inline |
Precompute right-shift and reciprocal multiplier for AA division.
Converts 32-bit AA division: (diff * 255u) / band (~60 cycles on AVR) into a multiply-by-reciprocal: ((diff >> shift) * inv) >> 8 (~14 cycles on AVR) where inv = round(255 * 256 / scaled).
Definition at line 209 of file primitives.h.
References computeBandShift().
Referenced by computeBandShift(), drawDiscCore(), drawRingCore(), and drawStrokeLineCore().
Here is the call graph for this function:
Here is the caller graph for this function: