Lines Matching refs:output

23 	DSP_DATA q7_t *output;  in test_zdsp_add_q7()  local
26 output = (DSP_DATA q7_t *)(DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_add_q7()
27 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_add_q7()
30 zdsp_add_q7(input1, input2, output, length); in test_zdsp_add_q7()
34 test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_add_q7()
38 test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_add_q7()
42 free(output); in test_zdsp_add_q7()
56 DSP_DATA q7_t *output; in test_zdsp_add_q7_in_place() local
59 output = (DSP_DATA q7_t *)(DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_add_q7_in_place()
60 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_add_q7_in_place()
63 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_add_q7_in_place()
66 zdsp_add_q7(output, input2, output, length); in test_zdsp_add_q7_in_place()
69 zassert_true(test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_add_q7_in_place()
72 zassert_true(test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_add_q7_in_place()
76 free(output); in test_zdsp_add_q7_in_place()
92 DSP_DATA q7_t *output; in test_zdsp_sub_q7() local
95 output = (DSP_DATA q7_t *)(DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_sub_q7()
96 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_sub_q7()
99 zdsp_sub_q7(input1, input2, output, length); in test_zdsp_sub_q7()
103 test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_sub_q7()
107 test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_sub_q7()
111 free(output); in test_zdsp_sub_q7()
125 DSP_DATA q7_t *output; in test_zdsp_sub_q7_in_place() local
128 output = (DSP_DATA q7_t *)(DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_sub_q7_in_place()
129 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_sub_q7_in_place()
132 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_sub_q7_in_place()
135 zdsp_sub_q7(output, input2, output, length); in test_zdsp_sub_q7_in_place()
138 zassert_true(test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_sub_q7_in_place()
141 zassert_true(test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_sub_q7_in_place()
145 free(output); in test_zdsp_sub_q7_in_place()
161 DSP_DATA q7_t *output; in test_zdsp_mult_q7() local
164 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_mult_q7()
165 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_mult_q7()
168 zdsp_mult_q7(input1, input2, output, length); in test_zdsp_mult_q7()
172 test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_mult_q7()
176 test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_mult_q7()
180 free(output); in test_zdsp_mult_q7()
194 DSP_DATA q7_t *output; in test_zdsp_mult_q7_in_place() local
197 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_mult_q7_in_place()
198 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_mult_q7_in_place()
201 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_mult_q7_in_place()
204 zdsp_mult_q7(output, input2, output, length); in test_zdsp_mult_q7_in_place()
207 zassert_true(test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_mult_q7_in_place()
210 zassert_true(test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_mult_q7_in_place()
214 free(output); in test_zdsp_mult_q7_in_place()
227 DSP_DATA q7_t *output; in test_zdsp_negate_q7() local
230 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_negate_q7()
231 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_negate_q7()
234 zdsp_negate_q7(input1, output, length); in test_zdsp_negate_q7()
238 test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_negate_q7()
242 test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_negate_q7()
246 free(output); in test_zdsp_negate_q7()
258 DSP_DATA q7_t *output; in test_zdsp_negate_q7_in_place() local
261 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_negate_q7_in_place()
262 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_negate_q7_in_place()
265 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_negate_q7_in_place()
268 zdsp_negate_q7(output, output, length); in test_zdsp_negate_q7_in_place()
271 zassert_true(test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_negate_q7_in_place()
274 zassert_true(test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_negate_q7_in_place()
278 free(output); in test_zdsp_negate_q7_in_place()
292 DSP_DATA q7_t *output; in test_zdsp_offset_q7() local
295 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_offset_q7()
296 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_offset_q7()
299 zdsp_offset_q7(input1, scalar, output, length); in test_zdsp_offset_q7()
303 test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_offset_q7()
307 test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_offset_q7()
311 free(output); in test_zdsp_offset_q7()
325 DSP_DATA q7_t *output; in test_zdsp_offset_q7_in_place() local
328 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_offset_q7_in_place()
329 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_offset_q7_in_place()
332 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_offset_q7_in_place()
335 zdsp_offset_q7(output, scalar, output, length); in test_zdsp_offset_q7_in_place()
338 zassert_true(test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_offset_q7_in_place()
341 zassert_true(test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_offset_q7_in_place()
345 free(output); in test_zdsp_offset_q7_in_place()
361 DSP_DATA q7_t *output; in test_zdsp_scale_q7() local
364 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_scale_q7()
365 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_scale_q7()
368 zdsp_scale_q7(input1, scalar, 0, output, length); in test_zdsp_scale_q7()
372 test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_scale_q7()
376 test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_scale_q7()
380 free(output); in test_zdsp_scale_q7()
393 DSP_DATA q7_t *output; in test_zdsp_scale_q7_in_place() local
396 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_scale_q7_in_place()
397 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_scale_q7_in_place()
400 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_scale_q7_in_place()
403 zdsp_scale_q7(output, scalar, 0, output, length); in test_zdsp_scale_q7_in_place()
406 zassert_true(test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_scale_q7_in_place()
409 zassert_true(test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_scale_q7_in_place()
413 free(output); in test_zdsp_scale_q7_in_place()
427 DSP_DATA q31_t *output; in test_zdsp_dot_prod_q7() local
430 output = (DSP_DATA q31_t *)malloc(1 * sizeof(q31_t)); in test_zdsp_dot_prod_q7()
431 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_dot_prod_q7()
434 zdsp_dot_prod_q7(input1, input2, length, &output[0]); in test_zdsp_dot_prod_q7()
438 test_snr_error_q31(1, output, ref, SNR_ERROR_THRESH), in test_zdsp_dot_prod_q7()
442 test_near_equal_q31(1, output, ref, ABS_ERROR_THRESH_Q31), in test_zdsp_dot_prod_q7()
446 free(output); in test_zdsp_dot_prod_q7()
457 DSP_DATA q7_t *output; in test_zdsp_abs_q7() local
460 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_abs_q7()
461 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_abs_q7()
464 zdsp_abs_q7(input1, output, length); in test_zdsp_abs_q7()
468 test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_abs_q7()
472 test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_abs_q7()
476 free(output); in test_zdsp_abs_q7()
486 DSP_DATA q7_t *output; in test_zdsp_abs_q7_in_place() local
489 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_abs_q7_in_place()
490 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_abs_q7_in_place()
493 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_abs_q7_in_place()
496 zdsp_abs_q7(output, output, length); in test_zdsp_abs_q7_in_place()
499 zassert_true(test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_abs_q7_in_place()
502 zassert_true(test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_abs_q7_in_place()
506 free(output); in test_zdsp_abs_q7_in_place()
517 DSP_DATA q7_t *output; in test_zdsp_shift_q7() local
520 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_shift_q7()
521 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_shift_q7()
524 zdsp_shift_q7(input1, 1, output, length); in test_zdsp_shift_q7()
528 test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_shift_q7()
532 test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_shift_q7()
536 free(output); in test_zdsp_shift_q7()
545 DSP_DATA q7_t *output; in test_zdsp_shift_q7_in_place() local
548 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_shift_q7_in_place()
549 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_shift_q7_in_place()
552 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_shift_q7_in_place()
555 zdsp_shift_q7(output, 1, output, length); in test_zdsp_shift_q7_in_place()
558 zassert_true(test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_shift_q7_in_place()
561 zassert_true(test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_shift_q7_in_place()
565 free(output); in test_zdsp_shift_q7_in_place()
577 DSP_DATA uint8_t *output; in test_zdsp_and_u8() local
580 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_and_u8()
581 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_and_u8()
584 zdsp_and_u8(input1, input2, output, length); in test_zdsp_and_u8()
588 test_equal_q7(length, output, ref), in test_zdsp_and_u8()
592 free(output); in test_zdsp_and_u8()
602 DSP_DATA uint8_t *output; in test_zdsp_and_u8_in_place() local
605 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_and_u8_in_place()
606 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_and_u8_in_place()
609 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_and_u8_in_place()
612 zdsp_and_u8(output, input2, output, length); in test_zdsp_and_u8_in_place()
615 zassert_true(test_equal_q7(length, output, ref), ASSERT_MSG_INCORRECT_COMP_RESULT); in test_zdsp_and_u8_in_place()
618 free(output); in test_zdsp_and_u8_in_place()
631 DSP_DATA uint8_t *output; in test_zdsp_or_u8() local
634 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_or_u8()
635 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_or_u8()
638 zdsp_or_u8(input1, input2, output, length); in test_zdsp_or_u8()
642 test_equal_q7(length, output, ref), in test_zdsp_or_u8()
646 free(output); in test_zdsp_or_u8()
656 DSP_DATA uint8_t *output; in test_zdsp_or_u8_in_place() local
659 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_or_u8_in_place()
660 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_or_u8_in_place()
663 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_or_u8_in_place()
666 zdsp_or_u8(output, input2, output, length); in test_zdsp_or_u8_in_place()
669 zassert_true(test_equal_q7(length, output, ref), ASSERT_MSG_INCORRECT_COMP_RESULT); in test_zdsp_or_u8_in_place()
672 free(output); in test_zdsp_or_u8_in_place()
681 DSP_DATA uint8_t *output; in test_zdsp_not_u8() local
684 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_not_u8()
685 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_not_u8()
688 zdsp_not_u8(input1, output, length); in test_zdsp_not_u8()
692 test_equal_q7(length, output, ref), in test_zdsp_not_u8()
696 free(output); in test_zdsp_not_u8()
706 DSP_DATA uint8_t *output; in test_zdsp_not_u8_in_place() local
709 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_not_u8_in_place()
710 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_not_u8_in_place()
713 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_not_u8_in_place()
716 zdsp_not_u8(output, output, length); in test_zdsp_not_u8_in_place()
719 zassert_true(test_equal_q7(length, output, ref), ASSERT_MSG_INCORRECT_COMP_RESULT); in test_zdsp_not_u8_in_place()
722 free(output); in test_zdsp_not_u8_in_place()
732 DSP_DATA uint8_t *output; in test_zdsp_xor_u8() local
735 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_xor_u8()
736 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_xor_u8()
739 zdsp_xor_u8(input1, input2, output, length); in test_zdsp_xor_u8()
743 test_equal_q7(length, output, ref), in test_zdsp_xor_u8()
747 free(output); in test_zdsp_xor_u8()
757 DSP_DATA uint8_t *output; in test_zdsp_xor_u8_in_place() local
760 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_xor_u8_in_place()
761 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_xor_u8_in_place()
764 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_xor_u8_in_place()
767 zdsp_xor_u8(output, input2, output, length); in test_zdsp_xor_u8_in_place()
770 zassert_true(test_equal_q7(length, output, ref), ASSERT_MSG_INCORRECT_COMP_RESULT); in test_zdsp_xor_u8_in_place()
773 free(output); in test_zdsp_xor_u8_in_place()
786 DSP_DATA q7_t *output; in test_zdsp_clip_q7() local
789 output = (DSP_DATA q7_t *)(DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_clip_q7()
790 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_clip_q7()
793 zdsp_clip_q7(input, output, min, max, length); in test_zdsp_clip_q7()
797 test_equal_q7(length, output, ref), in test_zdsp_clip_q7()
801 free(output); in test_zdsp_clip_q7()
814 DSP_DATA q7_t *output; in test_zdsp_clip_q7_in_place() local
817 output = (DSP_DATA q7_t *)(DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_clip_q7_in_place()
818 zassert_not_null(output, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_zdsp_clip_q7_in_place()
821 memcpy(output, input, length * sizeof(q7_t)); in test_zdsp_clip_q7_in_place()
824 zdsp_clip_q7(output, output, min, max, length); in test_zdsp_clip_q7_in_place()
827 zassert_true(test_equal_q7(length, output, ref), ASSERT_MSG_INCORRECT_COMP_RESULT); in test_zdsp_clip_q7_in_place()
830 free(output); in test_zdsp_clip_q7_in_place()