Lines Matching full:output

23 	DSP_DATA q7_t *output;  in test_zdsp_add_q7()  local
25 /* Allocate output buffer */ in test_zdsp_add_q7()
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()
32 /* Validate output */ 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()
41 /* Free output buffer */ 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
58 /* Allocate output buffer */ in test_zdsp_add_q7_in_place()
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()
62 /* Copy input data to output*/ 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()
68 /* Validate output */ 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()
75 /* Free output buffer */ 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
94 /* Allocate output buffer */ in test_zdsp_sub_q7()
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()
101 /* Validate output */ 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()
110 /* Free output buffer */ 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
127 /* Allocate output buffer */ in test_zdsp_sub_q7_in_place()
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()
131 /* Copy input data to output*/ 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()
137 /* Validate output */ 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()
144 /* Free output buffer */ 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
163 /* Allocate output buffer */ in test_zdsp_mult_q7()
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()
170 /* Validate output */ 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()
179 /* Free output buffer */ 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
196 /* Allocate output buffer */ in test_zdsp_mult_q7_in_place()
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()
200 /* Copy input data to output*/ 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()
206 /* Validate output */ 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()
213 /* Free output buffer */ 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
229 /* Allocate output buffer */ in test_zdsp_negate_q7()
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()
236 /* Validate output */ 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()
245 /* Free output buffer */ 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
260 /* Allocate output buffer */ in test_zdsp_negate_q7_in_place()
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()
264 /* Copy input data to output*/ 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()
270 /* Validate output */ 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()
277 /* Free output buffer */ 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
294 /* Allocate output buffer */ in test_zdsp_offset_q7()
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()
301 /* Validate output */ 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()
310 /* Free output buffer */ 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
327 /* Allocate output buffer */ in test_zdsp_offset_q7_in_place()
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()
331 /* Copy input data to output*/ 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()
337 /* Validate output */ 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()
344 /* Free output buffer */ 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
363 /* Allocate output buffer */ in test_zdsp_scale_q7()
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()
370 /* Validate output */ 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()
379 /* Free output buffer */ 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
395 /* Allocate output buffer */ in test_zdsp_scale_q7_in_place()
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()
399 /* Copy input data to output*/ 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()
405 /* Validate output */ 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()
412 /* Free output buffer */ 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
429 /* Allocate output buffer */ in test_zdsp_dot_prod_q7()
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()
436 /* Validate output */ 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()
445 /* Free output buffer */ 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
459 /* Allocate output buffer */ in test_zdsp_abs_q7()
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()
466 /* Validate output */ 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()
475 /* Free output buffer */ 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
488 /* Allocate output buffer */ in test_zdsp_abs_q7_in_place()
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()
492 /* Copy input data to output*/ 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()
498 /* Validate output */ 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()
505 /* Free output buffer */ 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
519 /* Allocate output buffer */ in test_zdsp_shift_q7()
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()
526 /* Validate output */ 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()
535 /* Free output buffer */ 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
547 /* Allocate output buffer */ in test_zdsp_shift_q7_in_place()
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()
551 /* Copy input data to output*/ 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()
557 /* Validate output */ 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()
564 /* Free output buffer */ 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
579 /* Allocate output buffer */ in test_zdsp_and_u8()
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()
586 /* Validate output */ in test_zdsp_and_u8()
588 test_equal_q7(length, output, ref), in test_zdsp_and_u8()
591 /* Free output buffer */ 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
604 /* Allocate output buffer */ in test_zdsp_and_u8_in_place()
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()
608 /* Copy input data to output*/ 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()
614 /* Validate output */ 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()
617 /* Free output buffer */ 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
633 /* Allocate output buffer */ in test_zdsp_or_u8()
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()
640 /* Validate output */ in test_zdsp_or_u8()
642 test_equal_q7(length, output, ref), in test_zdsp_or_u8()
645 /* Free output buffer */ 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
658 /* Allocate output buffer */ in test_zdsp_or_u8_in_place()
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()
662 /* Copy input data to output*/ 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()
668 /* Validate output */ 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()
671 /* Free output buffer */ 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
683 /* Allocate output buffer */ in test_zdsp_not_u8()
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()
690 /* Validate output */ in test_zdsp_not_u8()
692 test_equal_q7(length, output, ref), in test_zdsp_not_u8()
695 /* Free output buffer */ 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
708 /* Allocate output buffer */ in test_zdsp_not_u8_in_place()
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()
712 /* Copy input data to output*/ 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()
718 /* Validate output */ 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()
721 /* Free output buffer */ 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
734 /* Allocate output buffer */ in test_zdsp_xor_u8()
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()
741 /* Validate output */ in test_zdsp_xor_u8()
743 test_equal_q7(length, output, ref), in test_zdsp_xor_u8()
746 /* Free output buffer */ 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
759 /* Allocate output buffer */ in test_zdsp_xor_u8_in_place()
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()
763 /* Copy input data to output*/ 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()
769 /* Validate output */ 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()
772 /* Free output buffer */ 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
788 /* Allocate output buffer */ in test_zdsp_clip_q7()
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()
795 /* Validate output */ in test_zdsp_clip_q7()
797 test_equal_q7(length, output, ref), in test_zdsp_clip_q7()
800 /* Free output buffer */ 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
816 /* Allocate output buffer */ in test_zdsp_clip_q7_in_place()
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()
820 /* Copy input data to output*/ 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()
826 /* Validate output */ 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()
829 /* Free output buffer */ in test_zdsp_clip_q7_in_place()
830 free(output); in test_zdsp_clip_q7_in_place()