Lines Matching refs:q7_t

17 #define ABS_ERROR_THRESH_Q7	((q7_t)2)
20 static void test_zdsp_add_q7(const DSP_DATA q7_t *input1, const DSP_DATA q7_t *input2, in test_zdsp_add_q7()
21 const q7_t *ref, size_t length) in test_zdsp_add_q7()
23 DSP_DATA q7_t *output; 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()
53 static void test_zdsp_add_q7_in_place(const DSP_DATA q7_t *input1, const DSP_DATA q7_t *input2, in test_zdsp_add_q7_in_place()
54 const q7_t *ref, size_t length) in test_zdsp_add_q7_in_place()
56 DSP_DATA q7_t *output; 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()
63 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_add_q7_in_place()
89 static void test_zdsp_sub_q7(const DSP_DATA q7_t *input1, const DSP_DATA q7_t *input2, in test_zdsp_sub_q7()
90 const q7_t *ref, size_t length) in test_zdsp_sub_q7()
92 DSP_DATA q7_t *output; 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()
122 static void test_zdsp_sub_q7_in_place(const DSP_DATA q7_t *input1, const DSP_DATA q7_t *input2, in test_zdsp_sub_q7_in_place()
123 const q7_t *ref, size_t length) in test_zdsp_sub_q7_in_place()
125 DSP_DATA q7_t *output; 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()
132 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_sub_q7_in_place()
158 static void test_zdsp_mult_q7(const DSP_DATA q7_t *input1, const DSP_DATA q7_t *input2, in test_zdsp_mult_q7()
159 const q7_t *ref, size_t length) in test_zdsp_mult_q7()
161 DSP_DATA q7_t *output; in test_zdsp_mult_q7()
164 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_mult_q7()
191 static void test_zdsp_mult_q7_in_place(const DSP_DATA q7_t *input1, const DSP_DATA q7_t *input2, in test_zdsp_mult_q7_in_place()
192 const q7_t *ref, size_t length) in test_zdsp_mult_q7_in_place()
194 DSP_DATA q7_t *output; 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()
201 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_mult_q7_in_place()
225 static void test_zdsp_negate_q7(const DSP_DATA q7_t *input1, const q7_t *ref, size_t length) in test_zdsp_negate_q7()
227 DSP_DATA q7_t *output; in test_zdsp_negate_q7()
230 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_negate_q7()
255 static void test_zdsp_negate_q7_in_place(const DSP_DATA q7_t *input1, const q7_t *ref, in test_zdsp_negate_q7_in_place()
258 DSP_DATA q7_t *output; 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()
265 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_negate_q7_in_place()
289 static void test_zdsp_offset_q7(const DSP_DATA q7_t *input1, q7_t scalar, const q7_t *ref, in test_zdsp_offset_q7()
292 DSP_DATA q7_t *output; in test_zdsp_offset_q7()
295 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_offset_q7()
322 static void test_zdsp_offset_q7_in_place(const DSP_DATA q7_t *input1, q7_t scalar, const q7_t *ref, in test_zdsp_offset_q7_in_place()
325 DSP_DATA q7_t *output; 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()
332 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_offset_q7_in_place()
358 static void test_zdsp_scale_q7(const DSP_DATA q7_t *input1, q7_t scalar, const q7_t *ref, in test_zdsp_scale_q7()
361 DSP_DATA q7_t *output; in test_zdsp_scale_q7()
364 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_scale_q7()
390 static void test_zdsp_scale_q7_in_place(const DSP_DATA q7_t *input1, q7_t scalar, const q7_t *ref, in test_zdsp_scale_q7_in_place()
393 DSP_DATA q7_t *output; 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()
400 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_scale_q7_in_place()
424 static void test_zdsp_dot_prod_q7(const DSP_DATA q7_t *input1, const DSP_DATA q7_t *input2, in test_zdsp_dot_prod_q7()
455 static void test_zdsp_abs_q7(const DSP_DATA q7_t *input1, const q7_t *ref, size_t length) in test_zdsp_abs_q7()
457 DSP_DATA q7_t *output; in test_zdsp_abs_q7()
460 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_abs_q7()
484 static void test_zdsp_abs_q7_in_place(const DSP_DATA q7_t *input1, const q7_t *ref, size_t length) in test_zdsp_abs_q7_in_place()
486 DSP_DATA q7_t *output; 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()
493 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_abs_q7_in_place()
515 static void test_zdsp_shift_q7(const DSP_DATA q7_t *input1, const q7_t *ref, size_t length) in test_zdsp_shift_q7()
517 DSP_DATA q7_t *output; in test_zdsp_shift_q7()
520 output = (DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_shift_q7()
543 static void test_zdsp_shift_q7_in_place(const DSP_DATA q7_t *input1, const q7_t *ref, size_t length) in test_zdsp_shift_q7_in_place()
545 DSP_DATA q7_t *output; 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()
552 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_shift_q7_in_place()
580 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_and_u8()
605 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_and_u8_in_place()
609 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_and_u8_in_place()
634 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_or_u8()
659 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_or_u8_in_place()
663 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_or_u8_in_place()
684 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_not_u8()
709 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_not_u8_in_place()
713 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_not_u8_in_place()
735 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_xor_u8()
760 output = (DSP_DATA q7_t *)malloc(length * sizeof(uint8_t)); in test_zdsp_xor_u8_in_place()
764 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_xor_u8_in_place()
783 static void test_zdsp_clip_q7(const DSP_DATA q7_t *input, const q7_t *ref, q7_t min, q7_t max, in test_zdsp_clip_q7()
786 DSP_DATA q7_t *output; 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()
811 static void test_zdsp_clip_q7_in_place(const DSP_DATA q7_t *input, const q7_t *ref, q7_t min, in test_zdsp_clip_q7_in_place()
812 q7_t max, size_t length) in test_zdsp_clip_q7_in_place()
814 DSP_DATA q7_t *output; 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()
821 memcpy(output, input, length * sizeof(q7_t)); in test_zdsp_clip_q7_in_place()