Lines Matching refs:output
22 DSP_DATA float32_t *output; in test_zdsp_add_f32() local
25 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_add_f32()
26 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_add_f32()
29 zdsp_add_f32((DSP_DATA float32_t *)input1, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_add_f32()
33 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_add_f32()
38 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_add_f32()
43 free(output); in test_zdsp_add_f32()
55 DSP_DATA float32_t *output; in test_zdsp_add_f32_in_place() local
58 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_add_f32_in_place()
59 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_add_f32_in_place()
62 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_add_f32_in_place()
65 zdsp_add_f32(output, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_add_f32_in_place()
68 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_add_f32_in_place()
71 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_add_f32_in_place()
75 free(output); in test_zdsp_add_f32_in_place()
87 DSP_DATA float32_t *output; in test_zdsp_sub_f32() local
90 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_sub_f32()
91 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_sub_f32()
94 zdsp_sub_f32((DSP_DATA float32_t *)input1, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_sub_f32()
98 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_sub_f32()
103 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_sub_f32()
108 free(output); in test_zdsp_sub_f32()
120 DSP_DATA float32_t *output; in test_zdsp_sub_f32_in_place() local
123 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_sub_f32_in_place()
124 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_sub_f32_in_place()
127 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_sub_f32_in_place()
130 zdsp_sub_f32(output, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_sub_f32_in_place()
133 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_sub_f32_in_place()
136 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_sub_f32_in_place()
140 free(output); in test_zdsp_sub_f32_in_place()
152 DSP_DATA float32_t *output; in test_zdsp_mult_f32() local
155 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_mult_f32()
156 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_mult_f32()
159 zdsp_mult_f32((DSP_DATA float32_t *)input1, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_mult_f32()
163 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_mult_f32()
168 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_mult_f32()
173 free(output); in test_zdsp_mult_f32()
185 DSP_DATA float32_t *output; in test_zdsp_mult_f32_in_place() local
188 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_mult_f32_in_place()
189 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_mult_f32_in_place()
192 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_mult_f32_in_place()
195 zdsp_mult_f32(output, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_mult_f32_in_place()
198 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_mult_f32_in_place()
201 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_mult_f32_in_place()
205 free(output); in test_zdsp_mult_f32_in_place()
217 DSP_DATA float32_t *output; in test_zdsp_negate_f32() local
220 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_negate_f32()
221 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_negate_f32()
224 zdsp_negate_f32((DSP_DATA float32_t *)input1, output, length); in test_zdsp_negate_f32()
228 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_negate_f32()
233 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_negate_f32()
238 free(output); in test_zdsp_negate_f32()
250 DSP_DATA float32_t *output; in test_zdsp_negate_f32_in_place() local
253 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_negate_f32_in_place()
254 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_negate_f32_in_place()
257 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_negate_f32_in_place()
260 zdsp_negate_f32(output, output, length); in test_zdsp_negate_f32_in_place()
263 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_negate_f32_in_place()
266 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_negate_f32_in_place()
270 free(output); in test_zdsp_negate_f32_in_place()
282 DSP_DATA float32_t *output; in test_zdsp_offset_f32() local
285 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_offset_f32()
286 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_offset_f32()
289 zdsp_offset_f32((DSP_DATA float32_t *)input1, scalar, output, length); in test_zdsp_offset_f32()
293 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_offset_f32()
298 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_offset_f32()
303 free(output); in test_zdsp_offset_f32()
315 DSP_DATA float32_t *output; in test_zdsp_offset_f32_in_place() local
318 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_offset_f32_in_place()
319 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_offset_f32_in_place()
322 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_offset_f32_in_place()
325 zdsp_offset_f32(output, scalar, output, length); in test_zdsp_offset_f32_in_place()
328 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_offset_f32_in_place()
331 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_offset_f32_in_place()
335 free(output); in test_zdsp_offset_f32_in_place()
348 DSP_DATA float32_t *output; in test_zdsp_scale_f32() local
351 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_scale_f32()
352 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_scale_f32()
355 zdsp_scale_f32((DSP_DATA float32_t *)input1, scalar, output, length); in test_zdsp_scale_f32()
359 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_scale_f32()
364 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_scale_f32()
369 free(output); in test_zdsp_scale_f32()
381 DSP_DATA float32_t *output; in test_zdsp_scale_f32_in_place() local
384 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_scale_f32_in_place()
385 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_scale_f32_in_place()
388 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_scale_f32_in_place()
391 zdsp_scale_f32(output, scalar, output, length); in test_zdsp_scale_f32_in_place()
394 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_scale_f32_in_place()
397 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_scale_f32_in_place()
401 free(output); in test_zdsp_scale_f32_in_place()
413 DSP_DATA float32_t *output; in test_zdsp_dot_prod_f32() local
416 output = (DSP_DATA float32_t *)malloc(1 * sizeof(float32_t)); in test_zdsp_dot_prod_f32()
417 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_dot_prod_f32()
421 &output[0]); in test_zdsp_dot_prod_f32()
425 test_snr_error_f32(1, output, (float32_t *)ref, in test_zdsp_dot_prod_f32()
430 test_rel_error_f32(1, output, (float32_t *)ref, in test_zdsp_dot_prod_f32()
435 free(output); in test_zdsp_dot_prod_f32()
446 DSP_DATA float32_t *output; in test_zdsp_abs_f32() local
449 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_abs_f32()
450 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_abs_f32()
453 zdsp_abs_f32((DSP_DATA float32_t *)input1, output, length); in test_zdsp_abs_f32()
457 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_abs_f32()
462 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_abs_f32()
467 free(output); in test_zdsp_abs_f32()
478 DSP_DATA float32_t *output; in test_zdsp_abs_f32_in_place() local
481 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_abs_f32_in_place()
482 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_abs_f32_in_place()
485 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_abs_f32_in_place()
488 zdsp_abs_f32(output, output, length); in test_zdsp_abs_f32_in_place()
491 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_abs_f32_in_place()
494 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_abs_f32_in_place()
498 free(output); in test_zdsp_abs_f32_in_place()
510 DSP_DATA float32_t *output; in test_zdsp_clip_f32() local
513 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_clip_f32()
514 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_clip_f32()
517 zdsp_clip_f32((DSP_DATA float32_t *)input, output, min, max, length); in test_zdsp_clip_f32()
521 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_clip_f32()
526 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_clip_f32()
531 free(output); in test_zdsp_clip_f32()
544 DSP_DATA float32_t *output; in test_zdsp_clip_f32_in_place() local
547 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_clip_f32_in_place()
548 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_clip_f32_in_place()
551 memcpy(output, input, length * sizeof(float32_t)); in test_zdsp_clip_f32_in_place()
554 zdsp_clip_f32(output, output, min, max, length); in test_zdsp_clip_f32_in_place()
557 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_clip_f32_in_place()
560 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_clip_f32_in_place()
564 free(output); in test_zdsp_clip_f32_in_place()