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

◆ test_blend_u8_16()

bool autoresearch::simd_check::test_blend_u8_16 ( )
inline

Definition at line 208 of file AutoResearchSimd.h.

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

Referenced by getTests().

+ Here is the caller graph for this function: