
LIB8STATIC_ALWAYS_INLINE uint8_t  qadd8 (uint8_t i, uint8_t j) 
 add one byte to another, saturating at 0xFF More...


LIB8STATIC_ALWAYS_INLINE int8_t  qadd7 (int8_t i, int8_t j) 
 Add one byte to another, saturating at 0x7F. More...


LIB8STATIC_ALWAYS_INLINE uint8_t  qsub8 (uint8_t i, uint8_t j) 
 subtract one byte from another, saturating at 0x00 More...


LIB8STATIC_ALWAYS_INLINE uint8_t  add8 (uint8_t i, uint8_t j) 
 add one byte to another, with one byte result


LIB8STATIC_ALWAYS_INLINE uint8_t  sub8 (uint8_t i, uint8_t j) 
 subtract one byte from another, 8bit result


LIB8STATIC_ALWAYS_INLINE uint8_t  avg8 (uint8_t i, uint8_t j) 
 Calculate an integer average of two unsigned 8bit integer values (uint8_t). More...


LIB8STATIC_ALWAYS_INLINE uint16_t  avg16 (uint16_t i, uint16_t j) 
 Calculate an integer average of two unsigned 16bit integer values (uint16_t). More...


LIB8STATIC_ALWAYS_INLINE int8_t  avg7 (int8_t i, int8_t j) 
 Calculate an integer average of two signed 7bit integers (int8_t) If the first argument is even, result is rounded down. More...


LIB8STATIC_ALWAYS_INLINE int16_t  avg15 (int16_t i, int16_t j) 
 Calculate an integer average of two signed 15bit integers (int16_t) If the first argument is even, result is rounded down. More...


LIB8STATIC_ALWAYS_INLINE uint8_t  mod8 (uint8_t a, uint8_t m) 
 Calculate the remainder of one unsigned 8bit value divided by anoter, aka A % M. More...


LIB8STATIC uint8_t  addmod8 (uint8_t a, uint8_t b, uint8_t m) 
 Add two numbers, and calculate the modulo of the sum and a third number, M. More...


LIB8STATIC_ALWAYS_INLINE uint8_t  mul8 (uint8_t i, uint8_t j) 
 8x8 bit multiplication, with 8 bit result


LIB8STATIC_ALWAYS_INLINE uint8_t  qmul8 (uint8_t i, uint8_t j) 
 saturating 8x8 bit multiplication, with 8 bit result More...


LIB8STATIC_ALWAYS_INLINE int8_t  abs8 (int8_t i) 
 take abs() of a signed 8bit uint8_t


LIB8STATIC uint8_t  sqrt16 (uint16_t x) 
 square root for 16bit integers About three times faster and five times smaller than Arduino's general sqrt on AVR. More...

