MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_set1_f32_4

Function test_set1_f32_4

examples/SIMD/simd_tests.cpp:279–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void test_set1_f32_4(TestResult& result) {
280 float value = 3.14159f;
281 float expected[4] = {3.14159f, 3.14159f, 3.14159f, 3.14159f};
282 float output[4] = {0.0f};
283
284 simd_f32x4 v = set1_f32_4(value);
285 store_f32_4(output, v);
286
287 if (!compare_f32_arrays(expected, output, 4)) {
288 result.fail("Set1 f32x4 operation produced incorrect results");
289 }
290}
291
292// ============================================================================
293// Floating Point Tests

Callers

nothing calls this directly

Calls 2

compare_f32_arraysFunction · 0.85
failMethod · 0.45

Tested by

no test coverage detected