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

◆ test_sub_sat_u8_16()

bool autoresearch::simd_check::test_sub_sat_u8_16 ( )
inline

Definition at line 152 of file AutoResearchSimd.h.

152 {
153 uint8_t a[16] = {100,50,200,10, 100,50,200,10, 100,50,200,10, 100,50,200,10};
154 uint8_t b[16] = {50,100,50,100, 50,100,50,100, 50,100,50,100, 50,100,50,100};
155 uint8_t expected[16] = {50,0,150,0, 50,0,150,0, 50,0,150,0, 50,0,150,0};
156 uint8_t output[16] = {0};
157 store_u8_16(output, sub_sat_u8_16(load_u8_16(a), load_u8_16(b)));
158 return compare_u8(expected, output, 16);
159}
bool compare_u8(const uint8_t *a, const uint8_t *b, size_t n)
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: