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

◆ ref_add_sat_u8_16()

void autoresearch::simd_check::ref_add_sat_u8_16 ( const uint8_t * a,
const uint8_t * b,
uint8_t * out )
inline

Definition at line 802 of file AutoResearchSimd.h.

802 {
803 for (int i = 0; i < 16; i++) {
804 uint16_t sum = (uint16_t)a[i] + (uint16_t)b[i];
805 out[i] = (sum > 255) ? 255 : (uint8_t)sum;
806 }
807}

Referenced by test_crossval_add_sat_u8_16().

+ Here is the caller graph for this function: