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

◆ test_crossval_sub_sat_u8_16()

bool autoresearch::simd_check::test_crossval_sub_sat_u8_16 ( )
inline

Definition at line 825 of file AutoResearchSimd.h.

825 {
826 uint8_t a[16] = {255,0,128,127, 0,1,200,50, 0xFF,0x80,0x7F,0x01, 100,200,150,250};
827 uint8_t b[16] = {255,255,128,129, 0,255,56,206, 0x01,0x80,0x81,0xFF, 156,56,106,6};
828 uint8_t expected[16], actual[16];
829 ref_sub_sat_u8_16(a, b, expected);
830 store_u8_16(actual, sub_sat_u8_16(load_u8_16(a), load_u8_16(b)));
831 return compare_u8(expected, actual, 16);
832}
bool compare_u8(const uint8_t *a, const uint8_t *b, size_t n)
void ref_sub_sat_u8_16(const uint8_t *a, const uint8_t *b, uint8_t *out)

References compare_u8(), and ref_sub_sat_u8_16().

Referenced by getTests().

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