Lines Matching full:output

33 	float16_t *output;  in test_arm_copy_f16()  local
35 /* Allocate output buffer */ in test_arm_copy_f16()
36 output = malloc(length * sizeof(float16_t)); in test_arm_copy_f16()
37 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_arm_copy_f16()
40 arm_copy_f16((float16_t *)input1, output, length); in test_arm_copy_f16()
42 /* Validate output */ in test_arm_copy_f16()
44 test_equal_f16(length, (float16_t *)input1, output), in test_arm_copy_f16()
47 /* Free output buffer */ in test_arm_copy_f16()
48 free(output); in test_arm_copy_f16()
58 float16_t *output; in test_arm_fill_f16() local
61 /* Allocate output buffer */ in test_arm_fill_f16()
62 output = malloc(length * sizeof(float16_t)); in test_arm_fill_f16()
63 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_arm_fill_f16()
66 arm_fill_f16(val, output, length); in test_arm_fill_f16()
68 /* Validate output */ in test_arm_fill_f16()
71 output[index], val, ASSERT_MSG_INCORRECT_COMP_RESULT); in test_arm_fill_f16()
74 /* Free output buffer */ in test_arm_fill_f16()
75 free(output); in test_arm_fill_f16()
85 q15_t *output; in test_arm_f16_to_q15() local
87 /* Allocate output buffer */ in test_arm_f16_to_q15()
88 output = malloc(length * sizeof(q15_t)); in test_arm_f16_to_q15()
89 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_arm_f16_to_q15()
92 arm_f16_to_q15((float16_t *)input1, output, length); in test_arm_f16_to_q15()
94 /* Validate output */ in test_arm_f16_to_q15()
96 test_near_equal_q15(length, ref, output, ABS_ERROR_THRESH_Q15), in test_arm_f16_to_q15()
99 /* Free output buffer */ in test_arm_f16_to_q15()
100 free(output); in test_arm_f16_to_q15()
110 float32_t *output; in test_arm_f16_to_float() local
112 /* Allocate output buffer */ in test_arm_f16_to_float()
113 output = malloc(length * sizeof(float32_t)); in test_arm_f16_to_float()
114 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_arm_f16_to_float()
117 arm_f16_to_float((float16_t *)input1, output, length); in test_arm_f16_to_float()
119 /* Validate output */ in test_arm_f16_to_float()
121 test_rel_error_f32(length, (float32_t *)ref, output, in test_arm_f16_to_float()
125 /* Free output buffer */ in test_arm_f16_to_float()
126 free(output); in test_arm_f16_to_float()
136 float16_t *output; in test_arm_q15_to_f16() local
138 /* Allocate output buffer */ in test_arm_q15_to_f16()
139 output = malloc(length * sizeof(float16_t)); in test_arm_q15_to_f16()
140 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_arm_q15_to_f16()
143 arm_q15_to_f16(input1, output, length); in test_arm_q15_to_f16()
145 /* Validate output */ in test_arm_q15_to_f16()
147 test_rel_error_f16(length, (float16_t *)ref, output, in test_arm_q15_to_f16()
151 /* Free output buffer */ in test_arm_q15_to_f16()
152 free(output); in test_arm_q15_to_f16()
162 float16_t *output; in test_arm_float_to_f16() local
164 /* Allocate output buffer */ in test_arm_float_to_f16()
165 output = malloc(length * sizeof(float16_t)); in test_arm_float_to_f16()
166 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_arm_float_to_f16()
169 arm_float_to_f16((float32_t *)input1, output, length); in test_arm_float_to_f16()
171 /* Validate output */ in test_arm_float_to_f16()
173 test_rel_error_f16(length, (float16_t *)ref, output, in test_arm_float_to_f16()
177 /* Free output buffer */ in test_arm_float_to_f16()
178 free(output); in test_arm_float_to_f16()
191 float16_t *output; in test_arm_weighted_average_f16() local
193 /* Allocate output buffer */ in test_arm_weighted_average_f16()
194 output = malloc(1 * sizeof(float16_t)); in test_arm_weighted_average_f16()
195 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_arm_weighted_average_f16()
198 output[0] = arm_weighted_average_f16(val, coeff, length); in test_arm_weighted_average_f16()
200 /* Validate output */ in test_arm_weighted_average_f16()
202 test_close_error_f16(1, output, &ref[ref_offset], in test_arm_weighted_average_f16()
206 /* Free output buffer */ in test_arm_weighted_average_f16()
207 free(output); in test_arm_weighted_average_f16()