FastLED 3.10.9
Loading...
Searching...
No Matches

◆ test_blend_u8_16()

bool autoresearch::simd_check::test_blend_u8_16 ( )
inline

Definition at line 209 of file AutoResearchSimd.h.

209 {
210 uint8_t a[16] = {0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0};
211 uint8_t b[16] = {255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255};
212 uint8_t output[16] = {0};
213 store_u8_16(output, blend_u8_16(load_u8_16(a), load_u8_16(b), 128));
214 for (int i = 0; i < 16; i++) {
215 int diff = (int)output[i] - 128;
216 if (diff < -2 || diff > 2) return false;
217 }
218 return true;
219}

Referenced by getTests().

+ Here is the caller graph for this function: