Home
last modified time | relevance | path

Searched refs:q31_t (Results 1 – 25 of 85) sorted by relevance

1234

/Zephyr-latest/include/zephyr/drivers/
Dsensor_data_types.h58 q31_t values[3];
59 q31_t v[3];
61 q31_t x;
62 q31_t y;
63 q31_t z;
87 q31_t values[4];
88 q31_t v[4];
90 q31_t x;
91 q31_t y;
92 q31_t z;
[all …]
Demul_sensor.h31 const q31_t *value, int8_t shift);
33 int (*get_sample_range)(const struct emul *target, struct sensor_chan_spec ch, q31_t *lower,
34 q31_t *upper, q31_t *epsilon, int8_t *shift);
40 enum sensor_attribute attribute, q31_t *min, q31_t *max,
41 q31_t *increment, int8_t *shift);
72 struct sensor_chan_spec ch, const q31_t *value, in emul_sensor_backend_set_channel()
105 struct sensor_chan_spec ch, q31_t *lower, in emul_sensor_backend_get_sample_range()
106 q31_t *upper, q31_t *epsilon, int8_t *shift) in emul_sensor_backend_get_sample_range()
167 q31_t *min, q31_t *max, in emul_sensor_backend_get_attribute_metadata()
168 q31_t *increment, int8_t *shift) in emul_sensor_backend_get_attribute_metadata()
Dsensor_attribute_types.h31 q31_t x;
32 q31_t y;
33 q31_t z;
35 q31_t values[3];
/Zephyr-latest/tests/subsys/dsp/basicmath/src/
Dq31.c17 #define ABS_ERROR_THRESH_Q31 ((q31_t)4)
20 static void test_zdsp_add_q31(const DSP_DATA q31_t *input1, const DSP_DATA q31_t *input2, in test_zdsp_add_q31()
21 const q31_t *ref, size_t length) in test_zdsp_add_q31()
23 DSP_DATA q31_t *output; in test_zdsp_add_q31()
26 output = (DSP_DATA q31_t *)malloc(length * sizeof(q31_t)); in test_zdsp_add_q31()
53 static void test_zdsp_add_q31_in_place(const DSP_DATA q31_t *input1, const DSP_DATA q31_t *input2, in test_zdsp_add_q31_in_place()
54 const q31_t *ref, size_t length) in test_zdsp_add_q31_in_place()
56 DSP_DATA q31_t *output; in test_zdsp_add_q31_in_place()
59 output = (DSP_DATA q31_t *)malloc(length * sizeof(q31_t)); in test_zdsp_add_q31_in_place()
63 memcpy(output, input1, length * sizeof(q31_t)); in test_zdsp_add_q31_in_place()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/filtering/src/
Dfir_q31.c17 #define ABS_ERROR_THRESH_Q31 ((q31_t)2)
28 const q31_t *input = (const q31_t *)in_val; in ZTEST()
29 const q31_t *coeff = (const q31_t *)in_coeff; in ZTEST()
30 const q31_t *ref = (const q31_t *)ref_val; in ZTEST()
31 q31_t *state, *output_buf, *output; in ZTEST()
34 q31_t coeff_padded[32]; in ZTEST()
39 state = malloc(3 * 47 * sizeof(q31_t)); in ZTEST()
42 output_buf = malloc(length * sizeof(q31_t)); in ZTEST()
61 memset(coeff_padded, 0, round * sizeof(q31_t)); in ZTEST()
62 memcpy(coeff_padded, coeff, tap_count * sizeof(q31_t)); in ZTEST()
[all …]
Dbiquad_q31.c17 #define ABS_ERROR_THRESH_Q31 ((q31_t)1000)
20 #define ABS_ERROR_THRESH_Q31_32x64 ((q31_t)25)
27 const q31_t *input = in_default_val; in ZTEST()
28 const q31_t *coeff = in_default_coeff; in ZTEST()
29 const q31_t *ref = ref_default; in ZTEST()
30 q31_t *state, *output_buf, *output; in ZTEST()
34 state = malloc(32 * sizeof(q31_t)); in ZTEST()
37 output_buf = malloc(length * sizeof(q31_t)); in ZTEST()
75 const q31_t *input = in_default_val; in ZTEST()
76 const q31_t *coeff = in_default_coeff; in ZTEST()
[all …]
Dmisc_q31.c17 #define ABS_ERROR_THRESH_Q31 ((q31_t)2)
18 #define ABS_ERROR_THRESH_FAST_Q31 ((q31_t)11)
19 #define ABS_ERROR_THRESH_LD_Q31 ((q31_t)30)
22 size_t in1_length, size_t in2_length, const q31_t *ref, in test_arm_correlate_q31()
33 q31_t *output, *output_buf; in test_arm_correlate_q31()
36 output_buf = calloc(ref_length + 16, sizeof(q31_t)); in test_arm_correlate_q31()
103 size_t in1_length, size_t in2_length, const q31_t *ref, in test_arm_conv_q31()
106 q31_t *output; in test_arm_conv_q31()
109 output = calloc(ref_length, sizeof(q31_t)); in test_arm_conv_q31()
176 size_t first, size_t in1_length, size_t in2_length, const q31_t *ref, in test_arm_conv_partial_q31()
[all …]
Dmisc_q31.pat1 static const q31_t in_com1[128] = {
36 static const q31_t in_com2[128] = {
71 static const q31_t in_partial1[128] = {
106 static const q31_t in_partial2[128] = {
141 static const q31_t in_levinson_durbin_3_0[4] = {
145 static const q31_t in_levinson_durbin_8_1[9] = {
151 static const q31_t in_levinson_durbin_11_2[12] = {
157 static const q31_t in_levinson_durbin_err[3] = {
161 static const q31_t ref_correlate_4_1[7] = {
166 static const q31_t ref_correlate_4_2[7] = {
[all …]
Ddecim_q31.c17 #define ABS_ERROR_THRESH_Q31 ((q31_t)2)
27 const q31_t *input = in_val_decim; in ZTEST()
28 const q31_t *coeff = in_coeff_decim; in ZTEST()
29 const q31_t *ref = ref_decim; in ZTEST()
30 q31_t *state, *output_buf, *output; in ZTEST()
35 state = malloc(STATE_BUF_LEN * sizeof(q31_t)); in ZTEST()
38 output_buf = malloc(length * sizeof(q31_t)); in ZTEST()
91 const q31_t *input = in_val_interp; in ZTEST()
92 const q31_t *coeff = in_coeff_interp; in ZTEST()
93 const q31_t *ref = ref_interp; in ZTEST()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/complexmath/src/
Dq31.c17 #define ABS_ERROR_THRESH_Q31 ((q31_t)100)
23 const q31_t *input1, const q31_t *ref, size_t length) in test_arm_cmplx_conj_q31()
26 q31_t *output; in test_arm_cmplx_conj_q31()
32 output = malloc(buf_length * sizeof(q31_t)); in test_arm_cmplx_conj_q31()
57 const q31_t *input1, const q31_t *input2, const q63_t *ref, in test_arm_cmplx_dot_prod_q31()
90 const q31_t *input1, const q31_t *ref, size_t length) in test_arm_cmplx_mag_q31()
92 q31_t *output; in test_arm_cmplx_mag_q31()
95 output = malloc(length * sizeof(q31_t)); in test_arm_cmplx_mag_q31()
119 const q31_t *input1, const q31_t *ref, size_t length) in test_arm_cmplx_mag_squared_q31()
121 q31_t *output; in test_arm_cmplx_mag_squared_q31()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/statistics/src/
Dq31.c17 #define ABS_ERROR_THRESH_Q15 ((q31_t)100)
21 const q31_t *input1, int ref_index, size_t length) in test_arm_max_q31()
23 q31_t val; in test_arm_max_q31()
42 const q31_t *input1, int ref_index, size_t length) in test_arm_min_q31()
44 q31_t val; in test_arm_min_q31()
63 const q31_t *input1, int ref_index, size_t length) in test_arm_absmax_q31()
65 q31_t val; in test_arm_absmax_q31()
84 const q31_t *input1, int ref_index, size_t length) in test_arm_absmin_q31()
86 q31_t val; in test_arm_absmin_q31()
105 const q31_t *input1, int ref_index, size_t length) in test_arm_mean_q31()
[all …]
/Zephyr-latest/tests/benchmarks/cmsis_dsp/basicmath/src/
Dq31.c16 static const q31_t input1[256] = {
83 static const q31_t input2[256] = {
153 q31_t *output; in ZTEST()
156 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
178 q31_t *output; in ZTEST()
181 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
203 q31_t *output; in ZTEST()
206 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
228 q31_t *output; in ZTEST()
231 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/matrix/src/
Dbinary_q31.c17 #define ABS_ERROR_THRESH_Q31 ((q31_t)5)
26 static void test_op2(int op, const q31_t *input1, const q31_t *input2, in test_op2()
27 const q31_t *ref, size_t length) in test_op2()
31 q31_t *tmp1, *tmp2, *output; in test_op2()
40 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op2()
43 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op2()
46 output = malloc(length * sizeof(q31_t)); in test_op2()
72 rows * internal * sizeof(q31_t)); in test_op2()
75 internal * columns * sizeof(q31_t)); in test_op2()
115 static void test_op2c(int op, const q31_t *input1, const q31_t *input2, in test_op2c()
[all …]
Dunary_q31.c17 #define ABS_ERROR_THRESH_Q31 ((q31_t)2)
30 static void test_op2(int op, const q31_t *ref, size_t length) in test_op2()
34 q31_t *tmp1, *tmp2, *output; in test_op2()
43 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op2()
46 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op2()
49 output = malloc(length * sizeof(q31_t)); in test_op2()
67 memcpy(mat_in1.pData, in_com1, rows * columns * sizeof(q31_t)); in test_op2()
68 memcpy(mat_in2.pData, in_com2, rows * columns * sizeof(q31_t)); in test_op2()
114 static void test_op1(int op, const q31_t *ref, size_t length, bool transpose) in test_op1()
118 q31_t *tmp1, *output; in test_op1()
[all …]
/Zephyr-latest/include/zephyr/dsp/
Dbasicmath.h79 DSP_FUNC_SCOPE void zdsp_mult_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31_t *src_b,
80 DSP_DATA q31_t *dst, uint32_t block_size);
160 DSP_FUNC_SCOPE void zdsp_add_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31_t *src_b,
161 DSP_DATA q31_t *dst, uint32_t block_size);
231 DSP_FUNC_SCOPE void zdsp_sub_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31_t *src_b,
232 DSP_DATA q31_t *dst, uint32_t block_size);
322 DSP_FUNC_SCOPE void zdsp_scale_q31(const DSP_DATA q31_t *src, q31_t scale_fract, int8_t shift,
323 DSP_DATA q31_t *dst, uint32_t block_size);
391 DSP_FUNC_SCOPE void zdsp_abs_q31(const DSP_DATA q31_t *src, DSP_DATA q31_t *dst,
437 uint32_t block_size, DSP_DATA q31_t *result);
[all …]
/Zephyr-latest/include/zephyr/sensing/
Dsensing_datatypes.h82 q31_t v[3];
84 q31_t x; /**< X value of the 3D vector. */
85 q31_t y; /**< Y value of the 3D vector. */
86 q31_t z; /**< Z value of the 3D vector. */
127 q31_t v;
/Zephyr-latest/subsys/dsp/cmsis/public/
Dzdsp_backend.h29 static inline void zdsp_mult_q31(const q31_t *src_a, const q31_t *src_b, q31_t *dst, in zdsp_mult_q31()
49 static inline void zdsp_add_q31(const q31_t *src_a, const q31_t *src_b, q31_t *dst, in zdsp_add_q31()
69 static inline void zdsp_sub_q31(const q31_t *src_a, const q31_t *src_b, q31_t *dst, in zdsp_sub_q31()
90 static inline void zdsp_scale_q31(const q31_t *src, q31_t scale_fract, int8_t shift, q31_t *dst, in zdsp_scale_q31()
110 static inline void zdsp_abs_q31(const q31_t *src, q31_t *dst, uint32_t block_size) in zdsp_abs_q31()
127 static inline void zdsp_negate_q31(const q31_t *src, q31_t *dst, uint32_t block_size) in zdsp_negate_q31()
137 q31_t *dst) in zdsp_dot_prod_q7()
146 static inline void zdsp_dot_prod_q31(const q31_t *src_a, const q31_t *src_b, uint32_t block_size, in zdsp_dot_prod_q31()
166 static inline void zdsp_shift_q31(const q31_t *src, int8_t shift_bits, q31_t *dst, in zdsp_shift_q31()
180 static inline void zdsp_offset_q31(const q31_t *src, q31_t offset, q31_t *dst, uint32_t block_size) in zdsp_offset_q31()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/interpolation/src/
Dq31.c17 #define ABS_ERROR_THRESH ((q31_t)2000)
23 q31_t *output; in ZTEST()
26 output = malloc(length * sizeof(q31_t)); in ZTEST()
35 output[index] = arm_linear_interp_q31((q31_t *)in_linear_y, in ZTEST()
60 q31_t *output; in ZTEST()
65 inst.pData = (q31_t *)in_bilinear_y; in ZTEST()
68 output = malloc(length * sizeof(q31_t)); in ZTEST()
/Zephyr-latest/tests/lib/cmsis_dsp/support/src/
Dq31.c19 #define ABS_ERROR_THRESH_Q31 ((q31_t)80)
21 static void test_arm_copy_q31(const q31_t *input1, size_t length) in test_arm_copy_q31()
23 q31_t *output; in test_arm_copy_q31()
26 output = malloc(length * sizeof(q31_t)); in test_arm_copy_q31()
48 q31_t *output; in test_arm_fill_q31()
49 q31_t val = 0x40000000; in test_arm_fill_q31()
52 output = malloc(length * sizeof(q31_t)); in test_arm_fill_q31()
73 const q31_t *input1, const uint32_t *ref, size_t length) in test_arm_q31_to_float()
99 const q31_t *input1, const q15_t *ref, size_t length) in test_arm_q31_to_q15()
124 const q31_t *input1, const q7_t *ref, size_t length) in test_arm_q31_to_q7()
/Zephyr-latest/subsys/dsp/arcmwdt/public/
Dzdsp_backend.h32 static inline void zdsp_mult_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31_t *src_b, in zdsp_mult_q31()
33 DSP_DATA q31_t *dst, uint32_t block_size) in zdsp_mult_q31()
53 static inline void zdsp_add_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31_t *src_b, in zdsp_add_q31()
54 DSP_DATA q31_t *dst, uint32_t block_size) in zdsp_add_q31()
74 static inline void zdsp_sub_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31_t *src_b, in zdsp_sub_q31()
75 DSP_DATA q31_t *dst, uint32_t block_size) in zdsp_sub_q31()
95 static inline void zdsp_scale_q31(const DSP_DATA q31_t *src, q31_t scale_fract, int8_t shift, in zdsp_scale_q31()
96 DSP_DATA q31_t *dst, uint32_t block_size) in zdsp_scale_q31()
115 static inline void zdsp_abs_q31(const DSP_DATA q31_t *src, DSP_DATA q31_t *dst, uint32_t block_size) in zdsp_abs_q31()
134 static inline void zdsp_negate_q31(const DSP_DATA q31_t *src, DSP_DATA q31_t *dst, in zdsp_negate_q31()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/fastmath/src/
Dq31.c17 #define ABS_ERROR_THRESH ((q31_t)2200)
25 q31_t *output; in ZTEST()
28 output = malloc(length * sizeof(q31_t)); in ZTEST()
53 q31_t *output; in ZTEST()
56 output = malloc(length * sizeof(q31_t)); in ZTEST()
82 q31_t *output; in ZTEST()
85 output = malloc(length * sizeof(q31_t)); in ZTEST()
Dq31.pat1 static const q31_t in_angles[23] = {
10 static const q31_t in_sqrt[8] = {
15 static const q31_t ref_cos[23] = {
24 static const q31_t ref_sin[23] = {
33 static const q31_t ref_sqrt[8] = {
/Zephyr-latest/tests/lib/cmsis_dsp/transform/src/
Drq31.c21 const q31_t *input, const q31_t *ref, size_t length) in test_arm_rfft_q31()
24 q31_t *scratch, *output; in test_arm_rfft_q31()
30 scratch = malloc(length * sizeof(q31_t)); in test_arm_rfft_q31()
33 output = malloc(2 * length * sizeof(q31_t)); in test_arm_rfft_q31()
37 memcpy(scratch, input, length * sizeof(q31_t)); in test_arm_rfft_q31()
117 int scale_factor, const q31_t *input, const q31_t *ref, size_t length) in test_arm_rifft_q31()
121 q31_t *scratch, *output; in test_arm_rifft_q31()
127 scratch = calloc(length + 2, sizeof(q31_t)); /* see #24701 */ in test_arm_rifft_q31()
130 output = malloc(2 * length * sizeof(q31_t)); in test_arm_rifft_q31()
134 memcpy(scratch, input, length * sizeof(q31_t)); in test_arm_rifft_q31()
Dcq31.c20 const q31_t *input, const q31_t *ref, size_t length) in test_arm_cfft_q31()
23 q31_t *output; in test_arm_cfft_q31()
33 output = malloc(length * sizeof(q31_t)); in test_arm_cfft_q31()
37 memcpy(output, input, length * sizeof(q31_t)); in test_arm_cfft_q31()
124 int scale_factor, const q31_t *input, const q31_t *ref, size_t length) in test_arm_cifft_q31()
128 q31_t *output, *scaled_ref; in test_arm_cifft_q31()
138 output = malloc(length * sizeof(q31_t)); in test_arm_cifft_q31()
141 scaled_ref = malloc(length * sizeof(q31_t)); in test_arm_cifft_q31()
145 memcpy(output, input, length * sizeof(q31_t)); in test_arm_cifft_q31()
/Zephyr-latest/samples/modules/cmsis_dsp/moving_average/src/
Dmain.c18 q31_t firCoeffs[NUM_TAPS] = {0x0CCCCCCD, 0x0CCCCCCD, 0x0CCCCCCD, 0x0CCCCCCD, 0x0CCCCCCD,
22 q31_t firState[NUM_TAPS + BLOCK_SIZE - 1];
26 q31_t input[BLOCK_SIZE]; in main()
27 q31_t output[BLOCK_SIZE]; in main()

1234