Lines Matching full:length

22 static void test_arm_copy_f32(const uint32_t *input1, size_t length)  in test_arm_copy_f32()  argument
27 output = malloc(length * sizeof(float32_t)); in test_arm_copy_f32()
31 arm_copy_f32((float32_t *)input1, output, length); in test_arm_copy_f32()
35 test_equal_f32(length, (float32_t *)input1, output), in test_arm_copy_f32()
46 static void test_arm_fill_f32(size_t length) in test_arm_fill_f32() argument
53 output = malloc(length * sizeof(float32_t)); in test_arm_fill_f32()
57 arm_fill_f32(val, output, length); in test_arm_fill_f32()
60 for (index = 0; index < length; index++) { in test_arm_fill_f32()
74 const uint32_t *input1, const q31_t *ref, size_t length) in test_arm_float_to_q31() argument
79 output = malloc(length * sizeof(q31_t)); in test_arm_float_to_q31()
83 arm_float_to_q31((float32_t *)input1, output, length); in test_arm_float_to_q31()
87 test_near_equal_q31(length, ref, output, ABS_ERROR_THRESH_Q31), in test_arm_float_to_q31()
99 const uint32_t *input1, const q15_t *ref, size_t length) in test_arm_float_to_q15() argument
104 output = malloc(length * sizeof(q15_t)); in test_arm_float_to_q15()
108 arm_float_to_q15((float32_t *)input1, output, length); in test_arm_float_to_q15()
112 test_near_equal_q15(length, ref, output, ABS_ERROR_THRESH_Q15), in test_arm_float_to_q15()
124 const uint32_t *input1, const q7_t *ref, size_t length) in test_arm_float_to_q7() argument
129 output = malloc(length * sizeof(q7_t)); in test_arm_float_to_q7()
133 arm_float_to_q7((float32_t *)input1, output, length); in test_arm_float_to_q7()
137 test_near_equal_q7(length, ref, output, ABS_ERROR_THRESH_Q7), in test_arm_float_to_q7()
149 int ref_offset, size_t length) in test_arm_weighted_average_f32() argument
161 output[0] = arm_weighted_average_f32(val, coeff, length); in test_arm_weighted_average_f32()
178 const uint32_t *input1, const uint32_t *ref, size_t length, in test_arm_sort_out() argument
185 output = malloc(length * sizeof(float32_t)); in test_arm_sort_out()
192 arm_sort_f32(&inst, (float32_t *)input1, output, length); in test_arm_sort_out()
196 test_equal_f32(length, output, (float32_t *)ref), in test_arm_sort_out()
232 const uint32_t *input1, const uint32_t *ref, size_t length, in test_arm_merge_sort_out() argument
240 output = malloc(length * sizeof(float32_t)); in test_arm_merge_sort_out()
244 scratch = malloc(length * sizeof(float32_t)); in test_arm_merge_sort_out()
251 arm_merge_sort_f32(&inst, (float32_t *)input1, output, length); in test_arm_merge_sort_out()
255 test_equal_f32(length, output, (float32_t *)ref), in test_arm_merge_sort_out()
267 const uint32_t *input1, const uint32_t *ref, size_t length, in test_arm_sort_in() argument
274 output = malloc(length * sizeof(float32_t)); in test_arm_sort_in()
278 memcpy(output, input1, length * sizeof(float32_t)); in test_arm_sort_in()
284 arm_sort_f32(&inst, output, output, length); in test_arm_sort_in()
288 test_equal_f32(length, output, (float32_t *)ref), in test_arm_sort_in()
320 const uint32_t *input1, const uint32_t *ref, size_t length, in test_arm_sort_const() argument
327 output = malloc(length * sizeof(float32_t)); in test_arm_sort_const()
334 arm_sort_f32(&inst, (float32_t *)input1, output, length); in test_arm_sort_const()
338 test_equal_f32(length, output, (float32_t *)ref), in test_arm_sort_const()
370 const uint32_t *input1, const uint32_t *ref, size_t length, in test_arm_merge_sort_const() argument
378 output = malloc(length * sizeof(float32_t)); in test_arm_merge_sort_const()
382 scratch = malloc(length * sizeof(float32_t)); in test_arm_merge_sort_const()
389 arm_merge_sort_f32(&inst, (float32_t *)input1, output, length); in test_arm_merge_sort_const()
393 test_equal_f32(length, output, (float32_t *)ref), in test_arm_merge_sort_const()