Home
last modified time | relevance | path

Searched refs:q7_t (Results 1 – 25 of 34) sorted by relevance

12

/Zephyr-latest/tests/subsys/dsp/basicmath/src/
Dq7.c17 #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()
[all …]
Dq7.pat1 static DSP_STATIC_DATA const q7_t in_com1[256] = {
36 static DSP_STATIC_DATA const q7_t in_com2[256] = {
71 static DSP_STATIC_DATA const q7_t in_bitwise1[47] = {
80 static DSP_STATIC_DATA const q7_t in_bitwise2[47] = {
89 static DSP_STATIC_DATA const q7_t in_rand[33] = {
97 static DSP_STATIC_DATA const q7_t in_maxpos[33] = {
105 static DSP_STATIC_DATA const q7_t in_maxneg[33] = {
113 static DSP_STATIC_DATA const q7_t in_maxneg2[33] = {
121 static DSP_STATIC_DATA const q7_t in_clip[303] = {
162 static const q7_t ref_add[256] = {
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/filtering/src/
Dfir_q7.c17 #define ABS_ERROR_THRESH_Q7 ((q7_t)2)
28 const q7_t *input = (const q7_t *)in_val; in ZTEST()
29 const q7_t *coeff = (const q7_t *)in_coeff; in ZTEST()
30 const q7_t *ref = (const q7_t *)ref_val; in ZTEST()
31 q7_t *state, *output_buf, *output; in ZTEST()
34 q7_t coeff_padded[32]; in ZTEST()
39 state = malloc(47 * sizeof(q7_t)); in ZTEST()
42 output_buf = malloc(length * sizeof(q7_t)); in ZTEST()
61 memset(coeff_padded, 0, round * sizeof(q7_t)); in ZTEST()
62 memcpy(coeff_padded, coeff, tap_count * sizeof(q7_t)); in ZTEST()
[all …]
Dmisc_q7.c17 #define ABS_ERROR_THRESH_Q7 ((q7_t)5)
20 size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_correlate_q7()
23 q7_t *output; in test_arm_correlate_q7()
26 output = calloc(ref_length, sizeof(q7_t)); in test_arm_correlate_q7()
77 size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_q7()
80 q7_t *output; in test_arm_conv_q7()
83 output = calloc(ref_length, sizeof(q7_t)); in test_arm_conv_q7()
135 size_t first, size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_partial_q7()
138 q7_t *output; in test_arm_conv_partial_q7()
139 q7_t *temp; in test_arm_conv_partial_q7()
[all …]
Dmisc_q7.pat1 static const q7_t in_com1[128] = {
20 static const q7_t in_com2[128] = {
39 static const q7_t in_partial1[128] = {
58 static const q7_t in_partial2[128] = {
77 static const q7_t ref_correlate_30_31[61] = {
88 static const q7_t ref_correlate_30_32[63] = {
99 static const q7_t ref_correlate_30_33[65] = {
111 static const q7_t ref_correlate_30_34[67] = {
123 static const q7_t ref_correlate_30_49[97] = {
139 static const q7_t ref_correlate_31_31[61] = {
[all …]
/Zephyr-latest/tests/benchmarks/cmsis_dsp/basicmath/src/
Dq7.c16 static const q7_t input1[PATTERN_LENGTH] = {
51 static const q7_t input2[PATTERN_LENGTH] = {
89 q7_t *output; in ZTEST()
92 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
114 q7_t *output; in ZTEST()
117 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
139 q7_t *output; in ZTEST()
142 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
164 q7_t *output; in ZTEST()
167 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/matrix/src/
Dbinary_q7.c17 #define ABS_ERROR_THRESH_Q7 ((q7_t)5)
24 static void test_op2(int op, const q7_t *input1, const q7_t *input2, in test_op2()
25 const q7_t *ref, size_t length) in test_op2()
29 q7_t *tmp1, *tmp2, *scratch, *output; in test_op2()
38 output = malloc(length * sizeof(q7_t)); in test_op2()
41 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op2()
44 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op2()
47 scratch = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op2()
73 rows * internal * sizeof(q7_t)); in test_op2()
76 internal * columns * sizeof(q7_t)); in test_op2()
Dunary_q7.c18 #define ABS_ERROR_THRESH_Q7 ((q7_t)2)
26 static void test_op1(int op, const q7_t *ref, size_t length, bool transpose) in test_op1()
30 q7_t *tmp1, *output; in test_op1()
38 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op1()
41 output = malloc(length * sizeof(q7_t)); in test_op1()
60 memcpy(mat_in1.pData, in_com1, rows * columns * sizeof(q7_t)); in test_op1()
97 static void test_op2v(int op, const q7_t *ref, size_t length) in test_op2v()
101 q7_t *tmp1, *vec, *output_buf, *output; in test_op2v()
107 tmp1 = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op2v()
110 vec = malloc(2 * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op2v()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/statistics/src/
Dq7.c17 #define ABS_ERROR_THRESH_Q7 ((q7_t)20)
21 const q7_t *input1, int ref_index, size_t length) in test_arm_max_q7()
23 q7_t val; in test_arm_max_q7()
43 const q7_t *input1, int ref_index, size_t length) in test_arm_min_q7()
45 q7_t val; in test_arm_min_q7()
65 const q7_t *input1, int ref_index, size_t length) in test_arm_absmax_q7()
67 q7_t val; in test_arm_absmax_q7()
87 const q7_t *input1, int ref_index, size_t length) in test_arm_absmin_q7()
89 q7_t val; in test_arm_absmin_q7()
109 const q7_t *input1, int ref_index, size_t length) in test_arm_mean_q7()
[all …]
Dq7.pat1 static const q7_t in_com1[300] = {
42 static const q7_t in_com2[300] = {
83 static const q7_t in_absminmax[300] = {
124 static const q7_t in_max_maxidx[280] = {
162 static const q7_t in_min_maxidx[280] = {
200 static const q7_t in_absmax_maxidx[280] = {
238 static const q7_t in_absmin_maxidx[280] = {
276 static const q7_t ref_max_val[4] = {
284 static const q7_t ref_min_val[4] = {
292 static const q7_t ref_absmax_val[4] = {
[all …]
/Zephyr-latest/include/zephyr/dsp/
Dbasicmath.h49 DSP_FUNC_SCOPE void zdsp_mult_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b,
50 DSP_DATA q7_t *dst, uint32_t block_size);
130 DSP_FUNC_SCOPE void zdsp_add_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b,
131 DSP_DATA q7_t *dst, uint32_t block_size);
201 DSP_FUNC_SCOPE void zdsp_sub_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b,
202 DSP_DATA q7_t *dst, uint32_t block_size);
288 DSP_FUNC_SCOPE void zdsp_scale_q7(const DSP_DATA q7_t *src, q7_t scale_fract, int8_t shift,
289 DSP_DATA q7_t *dst, uint32_t block_size);
363 DSP_FUNC_SCOPE void zdsp_abs_q7(const DSP_DATA q7_t *src, DSP_DATA q7_t *dst, uint32_t block_size);
436 DSP_FUNC_SCOPE void zdsp_dot_prod_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b,
[all …]
Dutils.h115 ((q7_t)Z_CLAMP((int32_t)(src * (1U << 7)) >> m, INT8_MIN, INT8_MAX))
145 ((q7_t)Z_CLAMP((int32_t)(src * (1U << 7)) >> m, INT8_MIN, INT8_MAX))
Dtypes.h23 typedef int8_t q7_t; typedef
/Zephyr-latest/subsys/dsp/cmsis/public/
Dzdsp_backend.h19 static inline void zdsp_mult_q7(const q7_t *src_a, const q7_t *src_b, q7_t *dst, in zdsp_mult_q7()
40 static inline void zdsp_add_q7(const q7_t *src_a, const q7_t *src_b, q7_t *dst, uint32_t block_size) in zdsp_add_q7()
60 static inline void zdsp_sub_q7(const q7_t *src_a, const q7_t *src_b, q7_t *dst, uint32_t block_size) in zdsp_sub_q7()
80 static inline void zdsp_scale_q7(const q7_t *src, q7_t scale_fract, int8_t shift, q7_t *dst, in zdsp_scale_q7()
102 static inline void zdsp_abs_q7(const q7_t *src, q7_t *dst, uint32_t block_size) in zdsp_abs_q7()
119 static inline void zdsp_negate_q7(const q7_t *src, q7_t *dst, uint32_t block_size) in zdsp_negate_q7()
136 static inline void zdsp_dot_prod_q7(const q7_t *src_a, const q7_t *src_b, uint32_t block_size, in zdsp_dot_prod_q7()
157 static inline void zdsp_shift_q7(const q7_t *src, int8_t shift_bits, q7_t *dst, uint32_t block_size) in zdsp_shift_q7()
172 static inline void zdsp_offset_q7(const q7_t *src, q7_t offset, q7_t *dst, uint32_t block_size) in zdsp_offset_q7()
190 static inline void zdsp_clip_q7(const q7_t *src, q7_t *dst, q7_t low, q7_t high, in zdsp_clip_q7()
/Zephyr-latest/tests/lib/cmsis_dsp/interpolation/src/
Dq7.c17 #define ABS_ERROR_THRESH ((q7_t)2)
23 q7_t *output; in ZTEST()
26 output = malloc(length * sizeof(q7_t)); in ZTEST()
35 output[index] = arm_linear_interp_q7((q7_t *)in_linear_y, in ZTEST()
60 q7_t *output; in ZTEST()
65 inst.pData = (q7_t *)in_bilinear_y; in ZTEST()
68 output = malloc(length * sizeof(q7_t)); in ZTEST()
Dq7.pat14 static const q7_t in_linear_y[41] = {
23 static const q7_t ref_linear[40] = {
109 static const q7_t in_bilinear_y[56] = {
123 static const q7_t ref_bilinear[150] = {
/Zephyr-latest/tests/lib/cmsis_dsp/support/src/
Dq7.c17 #define ABS_ERROR_THRESH_Q7 ((q7_t)10)
21 static void test_arm_copy_q7(const q7_t *input1, size_t length) in test_arm_copy_q7()
23 q7_t *output; in test_arm_copy_q7()
26 output = malloc(length * sizeof(q7_t)); in test_arm_copy_q7()
48 q7_t *output; in test_arm_fill_q7()
49 q7_t val = 0x40; in test_arm_fill_q7()
52 output = malloc(length * sizeof(q7_t)); in test_arm_fill_q7()
73 const q7_t *input1, const uint32_t *ref, size_t length) in test_arm_q7_to_float()
99 const q7_t *input1, const q31_t *ref, size_t length) in test_arm_q7_to_q31()
124 const q7_t *input1, const q15_t *ref, size_t length) in test_arm_q7_to_q15()
Dq15.c17 #define ABS_ERROR_THRESH_Q7 ((q7_t)10)
125 const q15_t *input1, const q7_t *ref, size_t length) in test_arm_q15_to_q7()
127 q7_t *output; in test_arm_q15_to_q7()
130 output = malloc(length * sizeof(q7_t)); in test_arm_q15_to_q7()
Dq31.c17 #define ABS_ERROR_THRESH_Q7 ((q7_t)10)
124 const q31_t *input1, const q7_t *ref, size_t length) in test_arm_q31_to_q7()
126 q7_t *output; in test_arm_q31_to_q7()
129 output = malloc(length * sizeof(q7_t)); in test_arm_q31_to_q7()
/Zephyr-latest/subsys/dsp/arcmwdt/public/
Dzdsp_backend.h22 static inline void zdsp_mult_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b, in zdsp_mult_q7()
23 DSP_DATA q7_t *dst, uint32_t block_size) in zdsp_mult_q7()
43 static inline void zdsp_add_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b, in zdsp_add_q7()
44 DSP_DATA q7_t *dst, uint32_t block_size) in zdsp_add_q7()
64 static inline void zdsp_sub_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b, in zdsp_sub_q7()
65 DSP_DATA q7_t *dst, uint32_t block_size) in zdsp_sub_q7()
85 static inline void zdsp_scale_q7(const DSP_DATA q7_t *src, q7_t scale_fract, int8_t shift, in zdsp_scale_q7()
86 DSP_DATA q7_t *dst, uint32_t block_size) in zdsp_scale_q7()
107 static inline void zdsp_abs_q7(const DSP_DATA q7_t *src, DSP_DATA q7_t *dst, uint32_t block_size) in zdsp_abs_q7()
125 static inline void zdsp_negate_q7(const DSP_DATA q7_t *src, DSP_DATA q7_t *dst, uint32_t block_size) in zdsp_negate_q7()
[all …]
/Zephyr-latest/tests/subsys/dsp/utils/src/
Dq7.c29 static void test_shift_q7_to_f32(const q7_t data, const uint32_t shift, const float32_t expected) in test_shift_q7_to_f32()
38 static void test_shift_q7_to_f64(const q7_t data, const uint32_t shift, const float64_t expected) in test_shift_q7_to_f64()
Df64.c31 const DSP_DATA q7_t expected) in test_shift_f64_to_q7()
33 const q7_t shifted_data = Z_SHIFT_F64_TO_Q7(data, shift); in test_shift_f64_to_q7()
Df32.c34 q7_t shifted_data = Z_SHIFT_F32_TO_Q7(data, shift); in test_shift_f32_to_q7()
/Zephyr-latest/tests/subsys/dsp/print_format/src/
Dmain.c118 q7_t q = (q7_t)0x01; /* 0.007874016 */ in ZTEST()
142 q7_t q = (q7_t)0xe2; /* -0.228346457 */ in ZTEST()
/Zephyr-latest/tests/lib/cmsis_dsp/common/
Dtest_common.h161 size_t length, const q7_t *a, const q7_t *b) in test_equal_q7()
264 size_t length, const q7_t *a, const q7_t *b, q7_t threshold) in test_near_equal_q7()
458 size_t length, const q7_t *a, const q7_t *b, float32_t threshold) in test_snr_error_q7()

12