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

◆ compare_u8_arrays()

bool simd_test::compare_u8_arrays ( const uint8_t * a,
const uint8_t * b,
size_t count )

Compare two uint8_t arrays element-wise.

Parameters
aFirst array
bSecond array
countNumber of elements to compare
Returns
true if arrays match, false otherwise

Definition at line 14 of file test_helpers.cpp.

14 {
15 for (size_t i = 0; i < count; i++) {
16 if (a[i] != b[i]) {
17 return false;
18 }
19 }
20 return true;
21}

Referenced by test_add_sat_u8_16(), test_and_u8_16(), test_andnot_u8_16(), test_avg_round_u8_16(), test_avg_u8_16(), test_blend_u8_16(), test_load_store_u8_16(), test_max_u8_16(), test_min_u8_16(), test_or_u8_16(), test_scale_u8_16(), test_sub_sat_u8_16(), and test_xor_u8_16().

+ Here is the caller graph for this function: