FastLED 3.10.9
Loading...
Searching...
No Matches

◆ test_sub_i32_4()

bool autoresearch::simd_check::test_sub_i32_4 ( )
inline

Definition at line 420 of file AutoResearchSimd.h.

420 {
421 uint32_t a[4] = {as_u32(300), as_u32(-100), as_u32(0), as_u32(1000)};
422 uint32_t b[4] = {as_u32(200), as_u32(200), as_u32(0), as_u32(1000)};
423 uint32_t output[4] = {0};
424 store_u32_4(output, sub_i32_4(load_u32_4(a), load_u32_4(b)));
425 if (as_i32(output[0]) != 100) return false;
426 if (as_i32(output[1]) != -300) return false;
427 if (as_i32(output[2]) != 0) return false;
428 if (as_i32(output[3]) != 0) return false;
429 return true;
430}
uint32_t as_u32(int32_t v)
int32_t as_i32(uint32_t v)

References as_i32(), and as_u32().

Referenced by getTests().

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