220 {
221
222 uint8_t a[16] = {100,100,100,100, 100,100,100,100, 100,100,100,100, 100,100,100,100};
223 uint8_t b[16] = {200,200,200,200, 200,200,200,200, 200,200,200,200, 200,200,200,200};
224 uint8_t output0[16] = {0};
226 store_u8_16(output0, blend_u8_16(load_u8_16(a), load_u8_16(b), 0));
227 store_u8_16(output255, blend_u8_16(load_u8_16(a), load_u8_16(b), 255));
228 for (int i = 0; i < 16; i++) {
229 if (output0[i] != 100) return false;
230 int diff = (int)output255[i] - 200;
231 if (diff < -2 || diff > 2) return false;
232 }
233 return true;
234}