FastLED 3.10.9
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 803 of file AutoResearchSimd.h.

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

Referenced by test_crossval_add_sat_u8_16().

+ Here is the caller graph for this function: