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

◆ test_load_store_f32_4_special()

bool autoresearch::simd_check::test_load_store_f32_4_special ( )
inline

Definition at line 114 of file AutoResearchSimd.h.

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

Referenced by getTests().

+ Here is the caller graph for this function: