Lines Matching refs:output
24 float32_t *output; in test_arm_copy_f32() local
27 output = malloc(length * sizeof(float32_t)); in test_arm_copy_f32()
28 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); 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()
39 free(output); in test_arm_copy_f32()
49 float32_t *output; in test_arm_fill_f32() local
53 output = malloc(length * sizeof(float32_t)); in test_arm_fill_f32()
54 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_arm_fill_f32()
57 arm_fill_f32(val, output, length); in test_arm_fill_f32()
62 output[index], val, ASSERT_MSG_INCORRECT_COMP_RESULT); in test_arm_fill_f32()
66 free(output); in test_arm_fill_f32()
76 q31_t *output; in test_arm_float_to_q31() local
79 output = malloc(length * sizeof(q31_t)); in test_arm_float_to_q31()
80 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); 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()
91 free(output); in test_arm_float_to_q31()
101 q15_t *output; in test_arm_float_to_q15() local
104 output = malloc(length * sizeof(q15_t)); in test_arm_float_to_q15()
105 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); 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()
116 free(output); in test_arm_float_to_q15()
126 q7_t *output; in test_arm_float_to_q7() local
129 output = malloc(length * sizeof(q7_t)); in test_arm_float_to_q7()
130 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); 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()
141 free(output); in test_arm_float_to_q7()
154 float32_t *output; in test_arm_weighted_average_f32() local
157 output = malloc(1 * sizeof(float32_t)); in test_arm_weighted_average_f32()
158 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_arm_weighted_average_f32()
161 output[0] = arm_weighted_average_f32(val, coeff, length); in test_arm_weighted_average_f32()
165 test_rel_error_f32(1, output, &ref[ref_offset], in test_arm_weighted_average_f32()
170 free(output); in test_arm_weighted_average_f32()
181 float32_t *output; in test_arm_sort_out() local
185 output = malloc(length * sizeof(float32_t)); in test_arm_sort_out()
186 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); 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()
200 free(output); in test_arm_sort_out()
235 float32_t *output; in test_arm_merge_sort_out() local
240 output = malloc(length * sizeof(float32_t)); in test_arm_merge_sort_out()
241 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); 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()
259 free(output); in test_arm_merge_sort_out()
270 float32_t *output; in test_arm_sort_in() local
274 output = malloc(length * sizeof(float32_t)); in test_arm_sort_in()
275 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); 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()
292 free(output); in test_arm_sort_in()
323 float32_t *output; in test_arm_sort_const() local
327 output = malloc(length * sizeof(float32_t)); in test_arm_sort_const()
328 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); 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()
342 free(output); in test_arm_sort_const()
373 float32_t *output; in test_arm_merge_sort_const() local
378 output = malloc(length * sizeof(float32_t)); in test_arm_merge_sort_const()
379 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); 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()
397 free(output); in test_arm_merge_sort_const()