FastLED 3.9.15
|
LIB8STATIC_ALWAYS_INLINE int8_t avg7 | ( | int8_t | i, |
int8_t | j ) |
Calculate an integer average of two signed 7-bit integers (int8_t).
If the first argument is even, result is rounded down. If the first argument is odd, result is rounded up.
i | first value to average |
j | second value to average |
Definition at line 306 of file math8.h.
References LIB8STATIC_ALWAYS_INLINE.
Referenced by grad8(), grad8(), and grad8().