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

◆ test_sub_i32_4()

bool autoresearch::simd_check::test_sub_i32_4 ( )
inline

Definition at line 419 of file AutoResearchSimd.h.

419 {
420 uint32_t a[4] = {as_u32(300), as_u32(-100), as_u32(0), as_u32(1000)};
421 uint32_t b[4] = {as_u32(200), as_u32(200), as_u32(0), as_u32(1000)};
422 uint32_t output[4] = {0};
423 store_u32_4(output, sub_i32_4(load_u32_4(a), load_u32_4(b)));
424 if (as_i32(output[0]) != 100) return false;
425 if (as_i32(output[1]) != -300) return false;
426 if (as_i32(output[2]) != 0) return false;
427 if (as_i32(output[3]) != 0) return false;
428 return true;
429}
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: