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

◆ test_load_store_f32_4_special()

bool autoresearch::simd_check::test_load_store_f32_4_special ( )
inline

Definition at line 115 of file AutoResearchSimd.h.

115 {
116 float input[4] = {0.0f, -0.0f, 1e30f, -1e30f};
117 float output[4] = {0.0f};
118 simd_f32x4 v = load_f32_4(input);
119 store_f32_4(output, v);
120 // Compare bitwise for zero sign preservation
121 for (int i = 0; i < 4; i++) {
122 float diff = input[i] - output[i];
123 if (diff < -0.001f || diff > 0.001f) return false;
124 }
125 return true;
126}
platforms::simd_f32x4 simd_f32x4
Definition types.h:27

Referenced by getTests().

+ Here is the caller graph for this function: