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

◆ test_crossval_set1_u32_4()

bool autoresearch::simd_check::test_crossval_set1_u32_4 ( )
inline

Definition at line 1046 of file AutoResearchSimd.h.

1046 {
1047 // Test adversarial values: sign bit, all ones, zero, alternating bits
1048 uint32_t test_values[] = {0x80000000, 0xFFFFFFFF, 0x00000000, 0xAAAAAAAA, 0x55555555, 0x01010101};
1049 for (int t = 0; t < 6; t++) {
1050 uint32_t val = test_values[t];
1051 uint32_t output[4];
1052 store_u32_4(output, set1_u32_4(val));
1053 for (int i = 0; i < 4; i++) {
1054 if (output[i] != val) return false;
1055 }
1056 }
1057 return true;
1058}
static uint32_t t
Definition Luminova.h:55

References t.

Referenced by getTests().

+ Here is the caller graph for this function: