Lines Matching full:output

24 	float32_t *output;  in test_arm_copy_f32()  local
26 /* Allocate output buffer */ in test_arm_copy_f32()
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()
33 /* Validate output */ in test_arm_copy_f32()
35 test_equal_f32(length, (float32_t *)input1, output), in test_arm_copy_f32()
38 /* Free output buffer */ in test_arm_copy_f32()
39 free(output); in test_arm_copy_f32()
49 float32_t *output; in test_arm_fill_f32() local
52 /* Allocate output buffer */ in test_arm_fill_f32()
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()
59 /* Validate output */ in test_arm_fill_f32()
62 output[index], val, ASSERT_MSG_INCORRECT_COMP_RESULT); in test_arm_fill_f32()
65 /* Free output buffer */ in test_arm_fill_f32()
66 free(output); in test_arm_fill_f32()
76 q31_t *output; in test_arm_float_to_q31() local
78 /* Allocate output buffer */ in test_arm_float_to_q31()
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()
85 /* Validate output */ in test_arm_float_to_q31()
87 test_near_equal_q31(length, ref, output, ABS_ERROR_THRESH_Q31), in test_arm_float_to_q31()
90 /* Free output buffer */ 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
103 /* Allocate output buffer */ in test_arm_float_to_q15()
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()
110 /* Validate output */ in test_arm_float_to_q15()
112 test_near_equal_q15(length, ref, output, ABS_ERROR_THRESH_Q15), in test_arm_float_to_q15()
115 /* Free output buffer */ 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
128 /* Allocate output buffer */ in test_arm_float_to_q7()
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()
135 /* Validate output */ in test_arm_float_to_q7()
137 test_near_equal_q7(length, ref, output, ABS_ERROR_THRESH_Q7), in test_arm_float_to_q7()
140 /* Free output buffer */ 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
156 /* Allocate output buffer */ in test_arm_weighted_average_f32()
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()
163 /* Validate output */ in test_arm_weighted_average_f32()
165 test_rel_error_f32(1, output, &ref[ref_offset], in test_arm_weighted_average_f32()
169 /* Free output buffer */ 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
184 /* Allocate output buffer */ in test_arm_sort_out()
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()
194 /* Validate output */ in test_arm_sort_out()
196 test_equal_f32(length, output, (float32_t *)ref), in test_arm_sort_out()
199 /* Free output buffer */ in test_arm_sort_out()
200 free(output); in test_arm_sort_out()
235 float32_t *output; in test_arm_merge_sort_out() local
239 /* Allocate output buffer */ in test_arm_merge_sort_out()
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()
253 /* Validate output */ in test_arm_merge_sort_out()
255 test_equal_f32(length, output, (float32_t *)ref), in test_arm_merge_sort_out()
258 /* Free output buffer */ 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
273 /* Allocate output buffer */ in test_arm_sort_in()
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()
277 /* Copy input to the output buffer */ 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()
286 /* Validate output */ in test_arm_sort_in()
288 test_equal_f32(length, output, (float32_t *)ref), in test_arm_sort_in()
291 /* Free output buffer */ in test_arm_sort_in()
292 free(output); in test_arm_sort_in()
323 float32_t *output; in test_arm_sort_const() local
326 /* Allocate output buffer */ in test_arm_sort_const()
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()
336 /* Validate output */ in test_arm_sort_const()
338 test_equal_f32(length, output, (float32_t *)ref), in test_arm_sort_const()
341 /* Free output buffer */ in test_arm_sort_const()
342 free(output); in test_arm_sort_const()
373 float32_t *output; in test_arm_merge_sort_const() local
377 /* Allocate output buffer */ in test_arm_merge_sort_const()
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()
391 /* Validate output */ in test_arm_merge_sort_const()
393 test_equal_f32(length, output, (float32_t *)ref), in test_arm_merge_sort_const()
396 /* Free output buffer */ in test_arm_merge_sort_const()
397 free(output); in test_arm_merge_sort_const()