Home
last modified time | relevance | path

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

12

/third_party/cmsis/CMSIS/DSP/Source/MatrixFunctions/
Darm_mat_mult_q7.c65 q7_t const *pInB = (q7_t const *)pSrcB->pData; /* input data matrix pointer B */ in arm_mat_mult_q7_2x2_mve()
66 q7_t *pInA = pSrcA->pData; /* input data matrix pointer A */ in arm_mat_mult_q7_2x2_mve()
67 q7_t *pOut = pDst->pData; /* output data matrix pointer */ in arm_mat_mult_q7_2x2_mve()
69 q7_t *pInA0 = pInA; in arm_mat_mult_q7_2x2_mve()
70 q7_t *pInA1 = pInA0 + MATRIX_DIM; in arm_mat_mult_q7_2x2_mve()
87 pOut[0 * MATRIX_DIM] = (q7_t) __SSAT(acc0 >> 7, 8); in arm_mat_mult_q7_2x2_mve()
88 pOut[1 * MATRIX_DIM] = (q7_t) __SSAT(acc1 >> 7, 8); in arm_mat_mult_q7_2x2_mve()
99 pOut[0 * MATRIX_DIM] = (q7_t) __SSAT(acc0 >> 7, 8); in arm_mat_mult_q7_2x2_mve()
100 pOut[1 * MATRIX_DIM] = (q7_t) __SSAT(acc1 >> 7, 8); in arm_mat_mult_q7_2x2_mve()
114 q7_t const *pInB = (q7_t const *)pSrcB->pData; /* input data matrix pointer B */ in arm_mat_mult_q7_3x3_mve()
[all …]
Darm_mat_vec_mult_q7.c55 const q7_t *pSrcVec, in arm_mat_vec_mult_q7()
56 q7_t *pDstVec) in arm_mat_vec_mult_q7()
58 const q7_t *pMatSrc = pSrcMat->pData; in arm_mat_vec_mult_q7()
59 const q7_t *pMat0, *pMat1; in arm_mat_vec_mult_q7()
62 q7_t *px; in arm_mat_vec_mult_q7()
74 q7_t const *pMat0Vec, *pMat1Vec, *pMat2Vec, *pMat3Vec, *pVec; in arm_mat_vec_mult_q7()
75 const q7_t *pMat2, *pMat3; in arm_mat_vec_mult_q7()
76 q7_t const *pSrcVecPtr = pSrcVec; in arm_mat_vec_mult_q7()
160 q7_t const *pMat0Vec, *pMat1Vec, *pVec; in arm_mat_vec_mult_q7()
161 q7_t const *pSrcVecPtr = pSrcVec; in arm_mat_vec_mult_q7()
[all …]
/third_party/cmsis/CMSIS/DSP/Source/BasicMathFunctions/
Darm_abs_q7.c59 const q7_t * pSrc, in arm_abs_q7()
60 q7_t * pDst, in arm_abs_q7()
100 const q7_t * pSrc, in arm_abs_q7()
101 q7_t * pDst, in arm_abs_q7()
105 q7_t in; /* Temporary input variable */ in arm_abs_q7()
119 *pDst++ = (in > 0) ? in : (q7_t)__QSUB8(0, in); in arm_abs_q7()
121 *pDst++ = (in > 0) ? in : ((in == (q7_t) 0x80) ? (q7_t) 0x7f : -in); in arm_abs_q7()
126 *pDst++ = (in > 0) ? in : (q7_t)__QSUB8(0, in); in arm_abs_q7()
128 *pDst++ = (in > 0) ? in : ((in == (q7_t) 0x80) ? (q7_t) 0x7f : -in); in arm_abs_q7()
133 *pDst++ = (in > 0) ? in : (q7_t)__QSUB8(0, in); in arm_abs_q7()
[all …]
Darm_negate_q7.c56 const q7_t * pSrc, in arm_negate_q7()
57 q7_t * pDst, in arm_negate_q7()
97 const q7_t * pSrc, in arm_negate_q7()
98 q7_t * pDst, in arm_negate_q7()
102 q7_t in; /* Temporary input variable */ in arm_negate_q7()
119 in1 = read_q7x4_ia ((q7_t **) &pSrc); in arm_negate_q7()
123 *pDst++ = (in == (q7_t) 0x80) ? (q7_t) 0x7f : -in; in arm_negate_q7()
126 *pDst++ = (in == (q7_t) 0x80) ? (q7_t) 0x7f : -in; in arm_negate_q7()
129 *pDst++ = (in == (q7_t) 0x80) ? (q7_t) 0x7f : -in; in arm_negate_q7()
132 *pDst++ = (in == (q7_t) 0x80) ? (q7_t) 0x7f : -in; in arm_negate_q7()
[all …]
Darm_scale_q7.c60 const q7_t * pSrc, in arm_scale_q7()
61 q7_t scaleFract, in arm_scale_q7()
63 q7_t * pDst, in arm_scale_q7()
111 const q7_t * pSrc, in arm_scale_q7()
112 q7_t scaleFract, in arm_scale_q7()
114 q7_t * pDst, in arm_scale_q7()
123 q7_t in1, in2, in3, in4; /* Temporary input variables */ in arm_scale_q7()
124 q7_t out1, out2, out3, out4; /* Temporary output variables */ in arm_scale_q7()
142 out1 = (q7_t) (__SSAT(((in1) * scaleFract) >> kShift, 8)); in arm_scale_q7()
143 out2 = (q7_t) (__SSAT(((in2) * scaleFract) >> kShift, 8)); in arm_scale_q7()
[all …]
Darm_mult_q7.c57 const q7_t * pSrcA, in arm_mult_q7()
58 const q7_t * pSrcB, in arm_mult_q7()
59 q7_t * pDst, in arm_mult_q7()
102 const q7_t * pSrcA, in arm_mult_q7()
103 const q7_t * pSrcB, in arm_mult_q7()
104 q7_t * pDst, in arm_mult_q7()
112 q7_t out1, out2, out3, out4; /* Temporary output variables */ in arm_mult_q7()
124 out1 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7()
125 out2 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7()
126 out3 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7()
[all …]
Darm_add_q7.c59 const q7_t * pSrcA, in arm_add_q7()
60 const q7_t * pSrcB, in arm_add_q7()
61 q7_t * pDst, in arm_add_q7()
104 const q7_t * pSrcA, in arm_add_q7()
105 const q7_t * pSrcB, in arm_add_q7()
106 q7_t * pDst, in arm_add_q7()
122 … write_q7x4_ia (&pDst, __QADD8 (read_q7x4_ia ((q7_t **) &pSrcA), read_q7x4_ia ((q7_t **) &pSrcB))); in arm_add_q7()
124 *pDst++ = (q7_t) __SSAT ((q15_t) *pSrcA++ + *pSrcB++, 8); in arm_add_q7()
125 *pDst++ = (q7_t) __SSAT ((q15_t) *pSrcA++ + *pSrcB++, 8); in arm_add_q7()
126 *pDst++ = (q7_t) __SSAT ((q15_t) *pSrcA++ + *pSrcB++, 8); in arm_add_q7()
[all …]
Darm_sub_q7.c57 const q7_t * pSrcA, in arm_sub_q7()
58 const q7_t * pSrcB, in arm_sub_q7()
59 q7_t * pDst, in arm_sub_q7()
102 const q7_t * pSrcA, in arm_sub_q7()
103 const q7_t * pSrcB, in arm_sub_q7()
104 q7_t * pDst, in arm_sub_q7()
120 … write_q7x4_ia (&pDst, __QSUB8(read_q7x4_ia ((q7_t **) &pSrcA), read_q7x4_ia ((q7_t **) &pSrcB))); in arm_sub_q7()
122 *pDst++ = (q7_t) __SSAT((q15_t) *pSrcA++ - *pSrcB++, 8); in arm_sub_q7()
123 *pDst++ = (q7_t) __SSAT((q15_t) *pSrcA++ - *pSrcB++, 8); in arm_sub_q7()
124 *pDst++ = (q7_t) __SSAT((q15_t) *pSrcA++ - *pSrcB++, 8); in arm_sub_q7()
[all …]
Darm_offset_q7.c57 const q7_t * pSrc, in arm_offset_q7()
58 q7_t offset, in arm_offset_q7()
59 q7_t * pDst, in arm_offset_q7()
99 const q7_t * pSrc, in arm_offset_q7()
100 q7_t offset, in arm_offset_q7()
101 q7_t * pDst, in arm_offset_q7()
124 write_q7x4_ia (&pDst, __QADD8(read_q7x4_ia ((q7_t **) &pSrc), offset_packed)); in arm_offset_q7()
126 *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8); in arm_offset_q7()
127 *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8); in arm_offset_q7()
128 *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8); in arm_offset_q7()
[all …]
Darm_shift_q7.c60 const q7_t * pSrc, in arm_shift_q7()
62 q7_t * pDst, in arm_shift_q7()
105 const q7_t * pSrc, in arm_shift_q7()
107 q7_t * pDst, in arm_shift_q7()
116 q7_t in1, in2, in3, in4; /* Temporary input variables */ in arm_shift_q7()
142 *pDst++ = (q7_t) __SSAT(((q15_t) *pSrc++ << shiftBits), 8); in arm_shift_q7()
143 *pDst++ = (q7_t) __SSAT(((q15_t) *pSrc++ << shiftBits), 8); in arm_shift_q7()
144 *pDst++ = (q7_t) __SSAT(((q15_t) *pSrc++ << shiftBits), 8); in arm_shift_q7()
145 *pDst++ = (q7_t) __SSAT(((q15_t) *pSrc++ << shiftBits), 8); in arm_shift_q7()
200 *pDst++ = (q7_t) __SSAT(((q15_t) *pSrc++ << shiftBits), 8); in arm_shift_q7()
Darm_clip_q7.c53 void arm_clip_q7(const q7_t * pSrc, in arm_clip_q7()
54 q7_t * pDst, in arm_clip_q7()
55 q7_t low, in arm_clip_q7()
56 q7_t high, in arm_clip_q7()
113 void arm_clip_q7(const q7_t * pSrc, in arm_clip_q7()
114 q7_t * pDst, in arm_clip_q7()
115 q7_t low, in arm_clip_q7()
116 q7_t high, in arm_clip_q7()
/third_party/cmsis/CMSIS/DSP/Source/FilteringFunctions/
Darm_fir_q7.c61 const q7_t *pSmp = &pSample[j]; \
69 *pOutput++ = (q7_t) __SSAT((acc[j] >> 7U), 8); \
74 q7_t *pState = S->pState; /* State pointer */ \
75 const q7_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ \
76 q7_t *pStateCur; /* Points to the current sample of the state */ \
77 const q7_t *pSamples; /* Temporary pointer to the sample buffer */ \
78 q7_t *pOutput; /* Temporary pointer to the output buffer */ \
79 const q7_t *pTempSrc; /* Temporary pointer to the source data */ \
80 q7_t *pTempDest; /* Temporary pointer to the destination buffer */\
145 const q7_t * __restrict pSrc, in arm_fir_q7_49_64_mve()
[all …]
Darm_conv_q7.c64 const q7_t * pSrcA, in arm_conv_q7()
66 const q7_t * pSrcB, in arm_conv_q7()
68 q7_t * pDst) in arm_conv_q7()
70 const q7_t *pIn1 = pSrcA; /* inputA pointer */ in arm_conv_q7()
71 const q7_t *pIn2 = pSrcB; /* inputB pointer */ in arm_conv_q7()
75 const q7_t *pX; in arm_conv_q7()
76 const q7_t *pY; in arm_conv_q7()
77 const q7_t *pA; in arm_conv_q7()
78 const q7_t *pB; in arm_conv_q7()
119 *pDst++ = (q7_t) acc0; in arm_conv_q7()
[all …]
Darm_correlate_q7.c64 const q7_t * pSrcA, in arm_correlate_q7()
66 const q7_t * pSrcB, in arm_correlate_q7()
68 q7_t * pDst) in arm_correlate_q7()
70 const q7_t *pIn1 = pSrcA; /* inputA pointer */ in arm_correlate_q7()
71 const q7_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */ in arm_correlate_q7()
72 const q7_t *pX, *pY; in arm_correlate_q7()
73 const q7_t *pA, *pB; in arm_correlate_q7()
141 *pDst = (q7_t) acc0; in arm_correlate_q7()
143 *pDst = (q7_t) acc1; in arm_correlate_q7()
156 *pDst = (q7_t) acc; in arm_correlate_q7()
[all …]
Darm_fir_sparse_q7.c61 const q7_t * pSrc, in arm_fir_sparse_q7()
62 q7_t * pDst, in arm_fir_sparse_q7()
63 q7_t * pScratchIn, in arm_fir_sparse_q7()
67 q7_t *pState = S->pState; /* State pointer */ in arm_fir_sparse_q7()
68 const q7_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ in arm_fir_sparse_q7()
69 q7_t *px; /* Scratch buffer pointer */ in arm_fir_sparse_q7()
70 q7_t *py = pState; /* Temporary pointers for state buffer */ in arm_fir_sparse_q7()
71 q7_t *pb = pScratchIn; /* Temporary pointers for scratch buffer */ in arm_fir_sparse_q7()
72 q7_t *pOut = pDst; /* Destination pointer */ in arm_fir_sparse_q7()
80 q7_t coeff = *pCoeffs++; /* Read the coefficient value */ in arm_fir_sparse_q7()
[all …]
Darm_conv_opt_q7.c60 const q7_t * pSrcA, in arm_conv_opt_q7()
62 const q7_t * pSrcB, in arm_conv_opt_q7()
64 q7_t * pDst, in arm_conv_opt_q7()
73 const q7_t *pIn1, *pIn2; /* InputA and inputB pointer */ in arm_conv_opt_q7()
76 const q7_t *px; /* Temporary input1 pointer */ in arm_conv_opt_q7()
77 q7_t *pOut = pDst; /* Output pointer */ in arm_conv_opt_q7()
78 q7_t out0, out1, out2, out3; /* Temporary variables */ in arm_conv_opt_q7()
195 pIn2 = (q7_t *) py; in arm_conv_opt_q7()
298 out0 = (q7_t) (__SSAT(acc0 >> 7U, 8)); in arm_conv_opt_q7()
299 out1 = (q7_t) (__SSAT(acc1 >> 7U, 8)); in arm_conv_opt_q7()
[all …]
Darm_conv_partial_opt_q7.c57 const q7_t * pSrcA, in arm_conv_partial_opt_q7()
59 const q7_t * pSrcB, in arm_conv_partial_opt_q7()
61 q7_t * pDst, in arm_conv_partial_opt_q7()
69 const q7_t *pIn1, *pIn2; /* InputA and inputB pointer */ in arm_conv_partial_opt_q7()
71 const q7_t *px; /* Temporary input1 pointer */ in arm_conv_partial_opt_q7()
76 q7_t *pOut = pDst; /* Output pointer */ in arm_conv_partial_opt_q7()
77 q7_t out0, out1, out2, out3; /* Temporary variables */ in arm_conv_partial_opt_q7()
209 pIn2 = (q7_t *) py; in arm_conv_partial_opt_q7()
316 out0 = (q7_t) (__SSAT(acc0 >> 7U, 8)); in arm_conv_partial_opt_q7()
317 out1 = (q7_t) (__SSAT(acc1 >> 7U, 8)); in arm_conv_partial_opt_q7()
[all …]
Darm_conv_partial_q7.c58 const q7_t * pSrcA, in arm_conv_partial_q7()
60 const q7_t * pSrcB, in arm_conv_partial_q7()
62 q7_t * pDst, in arm_conv_partial_q7()
69 const q7_t *pIn1; /* InputA pointer */ in arm_conv_partial_q7()
70 const q7_t *pIn2; /* InputB pointer */ in arm_conv_partial_q7()
71 q7_t *pOut = pDst; /* Output pointer */ in arm_conv_partial_q7()
72 const q7_t *px; /* Intermediate inputA pointer */ in arm_conv_partial_q7()
73 const q7_t *py; /* Intermediate inputB pointer */ in arm_conv_partial_q7()
74 const q7_t *pSrc1, *pSrc2; /* Intermediate pointers */ in arm_conv_partial_q7()
84q7_t x0, x1, x2, x3, c0, c1; /* Temporary variables to hold state and coefficien… in arm_conv_partial_q7()
[all …]
/third_party/cmsis/CMSIS/DSP/Source/StatisticsFunctions/
Darm_absmin_q7.c57 const q7_t *pSrc, in arm_small_blk_absmin_q7()
59 q7_t *pResult, in arm_small_blk_absmin_q7()
64 q7_t const *pSrcVec; in arm_small_blk_absmin_q7()
66 q7_t minValue = Q7_ABSMAX; in arm_small_blk_absmin_q7()
77 pSrcVec = (q7_t const *) pSrc; in arm_small_blk_absmin_q7()
136 const q7_t * pSrc, in arm_absmin_q7()
138 q7_t * pResult, in arm_absmin_q7()
150 q7_t curBlkExtr = Q7_MAX; in arm_absmin_q7()
158 const q7_t *curSrc = pSrc; in arm_absmin_q7()
192 const q7_t * pSrc, in arm_absmin_q7()
[all …]
Darm_absmax_q7.c57 const q7_t * pSrc, in arm_small_blk_absmax_q7()
59 q7_t * pResult, in arm_small_blk_absmax_q7()
64 q7_t maxValue = Q7_ABSMIN; in arm_small_blk_absmax_q7()
108 const q7_t * pSrc, in arm_absmax_q7()
110 q7_t * pResult, in arm_absmax_q7()
122 q7_t curBlkExtr = Q7_MIN; in arm_absmax_q7()
130 const q7_t *curSrc = pSrc; in arm_absmax_q7()
163 const q7_t * pSrc, in arm_absmax_q7()
165 q7_t * pResult, in arm_absmax_q7()
168q7_t cur_absmax, out; /* Temporary variables to store the output value. */\ in arm_absmax_q7()
[all …]
Darm_mean_q7.c59 const q7_t * pSrc, in arm_mean_q7()
61 q7_t * pResult) in arm_mean_q7()
93 *pResult = (q7_t) (sum / (int32_t) blockSize); in arm_mean_q7()
97 const q7_t * pSrc, in arm_mean_q7()
99 q7_t * pResult) in arm_mean_q7()
116 in = read_q7x4_ia ((q7_t **) &pSrc); in arm_mean_q7()
147 *pResult = (q7_t) (sum / (int32_t) blockSize); in arm_mean_q7()
/third_party/cmsis/CMSIS/DSP/Include/dsp/
Dbasic_math_functions.h54 const q7_t * pSrcA,
55 const q7_t * pSrcB,
56 q7_t * pDst,
126 const q7_t * pSrcA,
127 const q7_t * pSrcB,
128 q7_t * pDst,
183 const q7_t * pSrcA,
184 const q7_t * pSrcB,
185 q7_t * pDst,
241 const q7_t * pSrc,
[all …]
Dsupport_functions.h78 q7_t * pDst,
114 q7_t * pDst,
150 q7_t * pDst,
161 const q7_t * pSrc,
173 const q7_t * pSrc,
185 const q7_t * pSrc,
306 const q7_t * pSrc,
307 q7_t * pDst,
354 q7_t value,
355 q7_t * pDst,
/third_party/cmsis/CMSIS/DSP/Source/SupportFunctions/
Darm_q31_to_q7.c56 q7_t * pDst, in arm_q31_to_q7()
105 *pDst++ = (q7_t) (*pSrcVec++ >> 24); in arm_q31_to_q7()
114 q7_t * pDst, in arm_q31_to_q7()
122 q7_t out1, out2, out3, out4; in arm_q31_to_q7()
133 out1 = (q7_t) (*pIn++ >> 24); in arm_q31_to_q7()
134 out2 = (q7_t) (*pIn++ >> 24); in arm_q31_to_q7()
135 out3 = (q7_t) (*pIn++ >> 24); in arm_q31_to_q7()
136 out4 = (q7_t) (*pIn++ >> 24); in arm_q31_to_q7()
158 *pDst++ = (q7_t) (*pIn++ >> 24); in arm_q31_to_q7()
Darm_q15_to_q7.c56 q7_t * pDst, in arm_q15_to_q7()
90 *pDst++ = (q7_t) (*pSrcVec++ >> 8); in arm_q15_to_q7()
99 q7_t * pDst, in arm_q15_to_q7()
153 *pDst++ = (q7_t) (*pIn++ >> 8); in arm_q15_to_q7()
154 *pDst++ = (q7_t) (*pIn++ >> 8); in arm_q15_to_q7()
155 *pDst++ = (q7_t) (*pIn++ >> 8); in arm_q15_to_q7()
156 *pDst++ = (q7_t) (*pIn++ >> 8); in arm_q15_to_q7()
179 *pDst++ = (q7_t) (*pIn++ >> 8); in arm_q15_to_q7()

12