FastLED 3.9.15
|
LIB8STATIC_ALWAYS_INLINE uint16_t avg16 | ( | uint16_t | i, |
uint16_t | j ) |
Calculate an integer average of two unsigned 16-bit integer values (uint16_t), rounded down.
Fractional results are rounded down, e.g. avg16(20,41) = 30
i | first value to average |
j | second value to average |
Definition at line 216 of file math8.h.
References LIB8STATIC_ALWAYS_INLINE.