FastLED 3.9.15
Loading...
Searching...
No Matches
simd_test Namespace Reference

Classes

struct  TestResult
 Stores the result of a single SIMD test. More...
 

Functions

bool compare_f32_arrays (const float *a, const float *b, size_t count, float epsilon=0.001f)
 Compare two float arrays element-wise with epsilon tolerance.
 
bool compare_u8_arrays (const uint8_t *a, const uint8_t *b, size_t count)
 Compare two uint8_t arrays element-wise.
 
void print_final_banner (int failed_tests)
 Print final result banner (PASS/FAIL)
 
void print_summary (const fl::vector< TestResult > &test_results, int total_tests, int passed_tests, int failed_tests)
 Print summary table of all test results.
 
void print_test_result (const TestResult &result)
 Print test result to serial.
 
template<typename TestFunc>
void run_test (const char *test_name, TestFunc test_func, fl::vector< TestResult > &results, int &total_tests, int &passed_tests, int &failed_tests)
 Run a single test and record result.
 
void test_add_f32_4 (TestResult &result)
 
void test_add_sat_u8_16 (TestResult &result)
 
void test_and_u8_16 (TestResult &result)
 
void test_andnot_u8_16 (TestResult &result)
 
void test_avg_round_u8_16 (TestResult &result)
 
void test_avg_u8_16 (TestResult &result)
 
void test_blend_u8_16 (TestResult &result)
 
void test_div_f32_4 (TestResult &result)
 
void test_load_store_f32_4 (TestResult &result)
 
void test_load_store_u32_4 (TestResult &result)
 
void test_load_store_u8_16 (TestResult &result)
 
void test_max_f32_4 (TestResult &result)
 
void test_max_u8_16 (TestResult &result)
 
void test_min_f32_4 (TestResult &result)
 
void test_min_u8_16 (TestResult &result)
 
void test_mul_f32_4 (TestResult &result)
 
void test_or_u8_16 (TestResult &result)
 
void test_scale_u8_16 (TestResult &result)
 
void test_set1_f32_4 (TestResult &result)
 
void test_set1_u32_4 (TestResult &result)
 
void test_sqrt_f32_4 (TestResult &result)
 
void test_sub_f32_4 (TestResult &result)
 
void test_sub_sat_u8_16 (TestResult &result)
 
void test_xor_u8_16 (TestResult &result)