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

◆ test_add_sat_u8_16()

bool autoresearch::simd_check::test_add_sat_u8_16 ( )
inline

Definition at line 131 of file AutoResearchSimd.h.

131 {
132 uint8_t a[16] = {100,150,200,250, 100,150,200,250, 100,150,200,250, 100,150,200,250};
133 uint8_t b[16] = {50,100,50,100, 50,100,50,100, 50,100,50,100, 50,100,50,100};
134 uint8_t expected[16] = {150,250,250,255, 150,250,250,255, 150,250,250,255, 150,250,250,255};
135 uint8_t output[16] = {0};
136 simd_u8x16 va = load_u8_16(a);
137 simd_u8x16 vb = load_u8_16(b);
138 store_u8_16(output, add_sat_u8_16(va, vb));
139 return compare_u8(expected, output, 16);
140}
bool compare_u8(const uint8_t *a, const uint8_t *b, size_t n)
platforms::simd_u8x16 simd_u8x16
Definition types.h:24
unsigned char uint8_t
Definition s16x16x4.h:209

References compare_u8().

Referenced by getTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: