Home
last modified time | relevance | path

Searched refs:__SSAT (Results 1 – 25 of 67) sorted by relevance

123

/third_party/cmsis/CMSIS/DSP/Source/FilteringFunctions/
Darm_fir_lattice_q15.c98 fnext0 = __SSAT(fnext0, 16); in arm_fir_lattice_q15()
102 gnext0 = __SSAT(gnext0, 16); in arm_fir_lattice_q15()
106 fnext1 = __SSAT(fnext1, 16); in arm_fir_lattice_q15()
108 gnext1 = __SSAT(gnext1, 16); in arm_fir_lattice_q15()
117 fnext2 = __SSAT(fnext2, 16); in arm_fir_lattice_q15()
119 gnext2 = __SSAT(gnext2, 16); in arm_fir_lattice_q15()
123 fnext3 = __SSAT(fnext3, 16); in arm_fir_lattice_q15()
125 gnext3 = __SSAT(gnext3, 16); in arm_fir_lattice_q15()
156 fnext0 = __SSAT(fnext0, 16); in arm_fir_lattice_q15()
161 fnext1 = __SSAT(fnext1, 16); in arm_fir_lattice_q15()
[all …]
Darm_iir_lattice_q15.c108 fnext = __SSAT(fnext, 16); in arm_iir_lattice_q15()
112 gnext = __SSAT(gnext, 16); in arm_iir_lattice_q15()
136 fnext = __SSAT(fnext, 16); in arm_iir_lattice_q15()
139 gnext1 = (q15_t) __SSAT(gnext, 16); in arm_iir_lattice_q15()
149 fcurr = __SSAT(fcurr, 16); in arm_iir_lattice_q15()
152 gnext2 = (q15_t) __SSAT(gnext, 16); in arm_iir_lattice_q15()
179 fnext = __SSAT(fnext, 16); in arm_iir_lattice_q15()
182 gnext1 = (q15_t) __SSAT(gnext, 16); in arm_iir_lattice_q15()
192 fcurr = __SSAT(fcurr, 16); in arm_iir_lattice_q15()
195 gnext2 = (q15_t) __SSAT(gnext, 16); in arm_iir_lattice_q15()
[all …]
Darm_conv_partial_q15.c190 *pOut++ = (q15_t) (__SSAT((sum >> 15), 16)); in arm_conv_partial_q15()
249 *pOut++ = (q15_t) (__SSAT((sum >> 15), 16)); in arm_conv_partial_q15()
457 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc0 >> 15), 16), __SSAT((acc1 >> 15), 16), 16)); in arm_conv_partial_q15()
458 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc2 >> 15), 16), __SSAT((acc3 >> 15), 16), 16)); in arm_conv_partial_q15()
460 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc1 >> 15), 16), __SSAT((acc0 >> 15), 16), 16)); in arm_conv_partial_q15()
461 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc3 >> 15), 16), __SSAT((acc2 >> 15), 16), 16)); in arm_conv_partial_q15()
515 *pOut++ = (q15_t) (__SSAT(sum >> 15, 16)); in arm_conv_partial_q15()
552 *pOut++ = (q15_t) (__SSAT(sum >> 15, 16)); in arm_conv_partial_q15()
650 *pOut++ = (q15_t) (__SSAT((sum >> 15), 16)); in arm_conv_partial_q15()
689 *pOut++ = (q15_t) (__SSAT((sum >> 15), 16)); in arm_conv_partial_q15()
[all …]
Darm_conv_opt_q15.c288 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc0 >> 15), 16), __SSAT((acc1 >> 15), 16), 16)); in arm_conv_opt_q15()
289 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc2 >> 15), 16), __SSAT((acc3 >> 15), 16), 16)); in arm_conv_opt_q15()
291 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc1 >> 15), 16), __SSAT((acc0 >> 15), 16), 16)); in arm_conv_opt_q15()
292 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc3 >> 15), 16), __SSAT((acc2 >> 15), 16), 16)); in arm_conv_opt_q15()
350 *pOut++ = (q15_t) (__SSAT((acc0 >> 15), 16)); in arm_conv_opt_q15()
Darm_conv_fast_opt_q15.c292 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc0 >> 15), 16), __SSAT((acc1 >> 15), 16), 16)); in arm_conv_fast_opt_q15()
293 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc2 >> 15), 16), __SSAT((acc3 >> 15), 16), 16)); in arm_conv_fast_opt_q15()
295 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc1 >> 15), 16), __SSAT((acc0 >> 15), 16), 16)); in arm_conv_fast_opt_q15()
296 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc3 >> 15), 16), __SSAT((acc2 >> 15), 16), 16)); in arm_conv_fast_opt_q15()
354 *pOut++ = (q15_t) (__SSAT((acc0 >> 15), 16)); in arm_conv_fast_opt_q15()
Darm_fir_fast_q15.c227 write_q15x2_ia (&pDst, __PKHBT(__SSAT((acc0 >> 15), 16), __SSAT((acc1 >> 15), 16), 16)); in arm_fir_fast_q15()
228 write_q15x2_ia (&pDst, __PKHBT(__SSAT((acc2 >> 15), 16), __SSAT((acc3 >> 15), 16), 16)); in arm_fir_fast_q15()
230 write_q15x2_ia (&pDst, __PKHBT(__SSAT((acc1 >> 15), 16), __SSAT((acc0 >> 15), 16), 16)); in arm_fir_fast_q15()
231 write_q15x2_ia (&pDst, __PKHBT(__SSAT((acc3 >> 15), 16), __SSAT((acc2 >> 15), 16), 16)); in arm_fir_fast_q15()
276 *pDst++ = (q15_t) (__SSAT((acc0 >> 15), 16)); in arm_fir_fast_q15()
Darm_fir_q7.c69 *pOutput++ = (q7_t) __SSAT((acc[j] >> 7U), 8); \
305 *pOutput++ = (q7_t) __SSAT((acc0 >> 7U), 8); in arm_fir_q7()
306 *pOutput++ = (q7_t) __SSAT((acc1 >> 7U), 8); in arm_fir_q7()
307 *pOutput++ = (q7_t) __SSAT((acc2 >> 7U), 8); in arm_fir_q7()
308 *pOutput++ = (q7_t) __SSAT((acc3 >> 7U), 8); in arm_fir_q7()
354 *pOutput++ = (q7_t) __SSAT((acc0 >> 7U), 8); in arm_fir_q7()
355 *pOutput++ = (q7_t) __SSAT((acc1 >> 7U), 8); in arm_fir_q7()
356 *pOutput++ = (q7_t) __SSAT((acc2 >> 7U), 8); in arm_fir_q7()
390 *pOutput++ = (q7_t) __SSAT((acc0 >> 7U), 8); in arm_fir_q7()
391 *pOutput++ = (q7_t) __SSAT((acc1 >> 7U), 8); in arm_fir_q7()
[all …]
Darm_fir_sparse_q15.c301 … write_q15x2_ia (&pOut, __PKHBT((q15_t) __SSAT(in1 >> 15, 16), (q15_t) __SSAT(in2 >> 15, 16), 16)); in arm_fir_sparse_q15()
303 … write_q15x2_ia (&pOut, __PKHBT((q15_t) __SSAT(in2 >> 15, 16), (q15_t) __SSAT(in1 >> 15, 16), 16)); in arm_fir_sparse_q15()
310 … write_q15x2_ia (&pOut, __PKHBT((q15_t) __SSAT(in1 >> 15, 16), (q15_t) __SSAT(in2 >> 15, 16), 16)); in arm_fir_sparse_q15()
312 … write_q15x2_ia (&pOut, __PKHBT((q15_t) __SSAT(in2 >> 15, 16), (q15_t) __SSAT(in1 >> 15, 16), 16)); in arm_fir_sparse_q15()
331 *pOut++ = (q15_t) __SSAT(*pScr2++ >> 15, 16); in arm_fir_sparse_q15()
Darm_conv_partial_opt_q15.c303 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc0 >> 15), 16), __SSAT((acc1 >> 15), 16), 16)); in arm_conv_partial_opt_q15()
304 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc2 >> 15), 16), __SSAT((acc3 >> 15), 16), 16)); in arm_conv_partial_opt_q15()
306 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc1 >> 15), 16), __SSAT((acc0 >> 15), 16), 16)); in arm_conv_partial_opt_q15()
307 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc3 >> 15), 16), __SSAT((acc2 >> 15), 16), 16)); in arm_conv_partial_opt_q15()
367 *pOut++ = (q15_t) (__SSAT((acc0 >> 15), 16)); in arm_conv_partial_opt_q15()
Darm_conv_partial_fast_opt_q15.c303 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc0 >> 15), 16), __SSAT((acc1 >> 15), 16), 16)); in arm_conv_partial_fast_opt_q15()
304 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc2 >> 15), 16), __SSAT((acc3 >> 15), 16), 16)); in arm_conv_partial_fast_opt_q15()
306 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc1 >> 15), 16), __SSAT((acc0 >> 15), 16), 16)); in arm_conv_partial_fast_opt_q15()
307 write_q15x2_ia (&pOut, __PKHBT(__SSAT((acc3 >> 15), 16), __SSAT((acc2 >> 15), 16), 16)); in arm_conv_partial_fast_opt_q15()
368 *pOut++ = (q15_t) (__SSAT((acc0 >> 15), 16)); in arm_conv_partial_fast_opt_q15()
/third_party/cmsis/CMSIS/DSP/Source/ComplexMathFunctions/
Darm_cmplx_mult_real_q15.c100 *pCmplxDst++ = (q15_t) __SSAT((((q31_t) *pSrcCmplx++ * in) >> 15), 16); in arm_cmplx_mult_real_q15()
101 *pCmplxDst++ = (q15_t) __SSAT((((q31_t) *pSrcCmplx++ * in) >> 15), 16); in arm_cmplx_mult_real_q15()
155 out1 = (q15_t) __SSAT(mul1 >> 15U, 16); in arm_cmplx_mult_real_q15()
156 out2 = (q15_t) __SSAT(mul2 >> 15U, 16); in arm_cmplx_mult_real_q15()
157 out3 = (q15_t) __SSAT(mul3 >> 15U, 16); in arm_cmplx_mult_real_q15()
158 out4 = (q15_t) __SSAT(mul4 >> 15U, 16); in arm_cmplx_mult_real_q15()
180 out1 = (q15_t) __SSAT(mul1 >> 15U, 16); in arm_cmplx_mult_real_q15()
181 out2 = (q15_t) __SSAT(mul2 >> 15U, 16); in arm_cmplx_mult_real_q15()
182 out3 = (q15_t) __SSAT(mul3 >> 15U, 16); in arm_cmplx_mult_real_q15()
183 out4 = (q15_t) __SSAT(mul4 >> 15U, 16); in arm_cmplx_mult_real_q15()
[all …]
Darm_cmplx_mult_real_q31.c100 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
101 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
130 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
131 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
140 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
141 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
149 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
150 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
158 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
159 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31()
[all …]
/third_party/cmsis/CMSIS/DSP/Source/MatrixFunctions/
Darm_mat_mult_q7.c87 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()
140 pOut[0 * MATRIX_DIM] = (q7_t) __SSAT(acc0 >> 7, 8); in arm_mat_mult_q7_3x3_mve()
141 pOut[1 * MATRIX_DIM] = (q7_t) __SSAT(acc1 >> 7, 8); in arm_mat_mult_q7_3x3_mve()
142 pOut[2 * MATRIX_DIM] = (q7_t) __SSAT(acc2 >> 7, 8); in arm_mat_mult_q7_3x3_mve()
154 pOut[0 * MATRIX_DIM] = (q7_t) __SSAT(acc0 >> 7, 8); in arm_mat_mult_q7_3x3_mve()
155 pOut[1 * MATRIX_DIM] = (q7_t) __SSAT(acc1 >> 7, 8); in arm_mat_mult_q7_3x3_mve()
156 pOut[2 * MATRIX_DIM] = (q7_t) __SSAT(acc2 >> 7, 8); in arm_mat_mult_q7_3x3_mve()
[all …]
Darm_mat_mult_q15.c98 pOut[0 * MATRIX_DIM2] = (q15_t) __SSAT(acc0, 16); in arm_mat_mult_q15_2x2_mve()
99 pOut[1 * MATRIX_DIM2] = (q15_t) __SSAT(acc1, 16); in arm_mat_mult_q15_2x2_mve()
113 pOut[0 * MATRIX_DIM2] = (q15_t) __SSAT(acc0, 16); in arm_mat_mult_q15_2x2_mve()
114 pOut[1 * MATRIX_DIM2] = (q15_t) __SSAT(acc1, 16); in arm_mat_mult_q15_2x2_mve()
159 pOut[0 * MATRIX_DIM3] = (q15_t) __SSAT(acc0, 16); in arm_mat_mult_q15_3x3_mve()
160 pOut[1 * MATRIX_DIM3] = (q15_t) __SSAT(acc1, 16); in arm_mat_mult_q15_3x3_mve()
161 pOut[2 * MATRIX_DIM3] = (q15_t) __SSAT(acc2, 16); in arm_mat_mult_q15_3x3_mve()
177 pOut[0 * MATRIX_DIM3] = (q15_t) __SSAT(acc0, 16); in arm_mat_mult_q15_3x3_mve()
178 pOut[1 * MATRIX_DIM3] = (q15_t) __SSAT(acc1, 16); in arm_mat_mult_q15_3x3_mve()
179 pOut[2 * MATRIX_DIM3] = (q15_t) __SSAT(acc2, 16); in arm_mat_mult_q15_3x3_mve()
[all …]
Darm_mat_scale_q15.c197 in1 = (q15_t) (__SSAT(out1, 16)); in arm_mat_scale_q15()
198 in2 = (q15_t) (__SSAT(out2, 16)); in arm_mat_scale_q15()
199 in3 = (q15_t) (__SSAT(out3, 16)); in arm_mat_scale_q15()
200 in4 = (q15_t) (__SSAT(out4, 16)); in arm_mat_scale_q15()
207 *pOut++ = (q15_t) (__SSAT(((q31_t) (*pIn++) * scaleFract) >> kShift, 16)); in arm_mat_scale_q15()
208 *pOut++ = (q15_t) (__SSAT(((q31_t) (*pIn++) * scaleFract) >> kShift, 16)); in arm_mat_scale_q15()
209 *pOut++ = (q15_t) (__SSAT(((q31_t) (*pIn++) * scaleFract) >> kShift, 16)); in arm_mat_scale_q15()
210 *pOut++ = (q15_t) (__SSAT(((q31_t) (*pIn++) * scaleFract) >> kShift, 16)); in arm_mat_scale_q15()
232 *pOut++ = (q15_t) (__SSAT(((q31_t) (*pIn++) * scaleFract) >> kShift, 16)); in arm_mat_scale_q15()
/third_party/cmsis/CMSIS/DSP/Source/TransformFunctions/
Darm_cfft_radix4_q15.c615 R0 = __SSAT(T0 + S0, 16U); in arm_radix4_butterfly_q15()
617 R1 = __SSAT(T1 + S1, 16U); in arm_radix4_butterfly_q15()
620 S0 = __SSAT(T0 - S0, 16); in arm_radix4_butterfly_q15()
622 S1 = __SSAT(T1 - S1, 16); in arm_radix4_butterfly_q15()
636 T0 = __SSAT(T0 + U0, 16U); in arm_radix4_butterfly_q15()
638 T1 = __SSAT(T1 + U1, 16U); in arm_radix4_butterfly_q15()
648 R0 = __SSAT(R0 - T0, 16U); in arm_radix4_butterfly_q15()
649 R1 = __SSAT(R1 - T1, 16U); in arm_radix4_butterfly_q15()
677 T0 = __SSAT(T0 - U0, 16); in arm_radix4_butterfly_q15()
679 T1 = __SSAT(T1 - U1, 16); in arm_radix4_butterfly_q15()
[all …]
/third_party/cmsis/CMSIS/DSP/Source/BasicMathFunctions/
Darm_shift_q15.c134 write_q15x2_ia (&pDst, __PKHBT(__SSAT(((q31_t) in1 << shiftBits), 16), in arm_shift_q15()
135 __SSAT(((q31_t) in2 << shiftBits), 16), 16)); in arm_shift_q15()
137 write_q15x2_ia (&pDst, __PKHBT(__SSAT(((q31_t) in2 << shiftBits), 16), in arm_shift_q15()
138 __SSAT(((q31_t) in1 << shiftBits), 16), 16)); in arm_shift_q15()
146 write_q15x2_ia (&pDst, __PKHBT(__SSAT(((q31_t) in1 << shiftBits), 16), in arm_shift_q15()
147 __SSAT(((q31_t) in2 << shiftBits), 16), 16)); in arm_shift_q15()
149 write_q15x2_ia (&pDst, __PKHBT(__SSAT(((q31_t) in2 << shiftBits), 16), in arm_shift_q15()
150 __SSAT(((q31_t) in1 << shiftBits), 16), 16)); in arm_shift_q15()
154 *pDst++ = __SSAT(((q31_t) *pSrc++ << shiftBits), 16); in arm_shift_q15()
155 *pDst++ = __SSAT(((q31_t) *pSrc++ << shiftBits), 16); in arm_shift_q15()
[all …]
Darm_mult_q7.c124 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()
127 out4 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7()
132 *pDst++ = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7()
133 *pDst++ = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7()
134 *pDst++ = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7()
135 *pDst++ = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7()
157 *pDst++ = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7()
Darm_scale_q7.c142 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()
144 out3 = (q7_t) (__SSAT(((in3) * scaleFract) >> kShift, 8)); in arm_scale_q7()
145 out4 = (q7_t) (__SSAT(((in4) * scaleFract) >> kShift, 8)); in arm_scale_q7()
150 *pDst++ = (q7_t) (__SSAT((((q15_t) *pSrc++ * scaleFract) >> kShift), 8)); in arm_scale_q7()
151 *pDst++ = (q7_t) (__SSAT((((q15_t) *pSrc++ * scaleFract) >> kShift), 8)); in arm_scale_q7()
152 *pDst++ = (q7_t) (__SSAT((((q15_t) *pSrc++ * scaleFract) >> kShift), 8)); in arm_scale_q7()
153 *pDst++ = (q7_t) (__SSAT((((q15_t) *pSrc++ * scaleFract) >> kShift), 8)); in arm_scale_q7()
175 *pDst++ = (q7_t) (__SSAT((((q15_t) *pSrc++ * scaleFract) >> kShift), 8)); in arm_scale_q7()
Darm_shift_q7.c137 write_q7x4_ia (&pDst, __PACKq7(__SSAT(((q15_t) in1 << shiftBits), 8), in arm_shift_q7()
138 __SSAT(((q15_t) in2 << shiftBits), 8), in arm_shift_q7()
139 __SSAT(((q15_t) in3 << shiftBits), 8), in arm_shift_q7()
140 __SSAT(((q15_t) in4 << shiftBits), 8) )); 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_mult_q15.c141 out1 = (q15_t) __SSAT(mul1 >> 15, 16); in arm_mult_q15()
142 out2 = (q15_t) __SSAT(mul2 >> 15, 16); in arm_mult_q15()
143 out3 = (q15_t) __SSAT(mul3 >> 15, 16); in arm_mult_q15()
144 out4 = (q15_t) __SSAT(mul4 >> 15, 16); in arm_mult_q15()
156 *pDst++ = (q15_t) __SSAT((((q31_t) (*pSrcA++) * (*pSrcB++)) >> 15), 16); in arm_mult_q15()
157 *pDst++ = (q15_t) __SSAT((((q31_t) (*pSrcA++) * (*pSrcB++)) >> 15), 16); in arm_mult_q15()
158 *pDst++ = (q15_t) __SSAT((((q31_t) (*pSrcA++) * (*pSrcB++)) >> 15), 16); in arm_mult_q15()
159 *pDst++ = (q15_t) __SSAT((((q31_t) (*pSrcA++) * (*pSrcB++)) >> 15), 16); in arm_mult_q15()
181 *pDst++ = (q15_t) __SSAT((((q31_t) (*pSrcA++) * (*pSrcB++)) >> 15), 16); in arm_mult_q15()
Darm_scale_q15.c156 in1 = (q15_t) (__SSAT(out1, 16)); in arm_scale_q15()
157 in2 = (q15_t) (__SSAT(out2, 16)); in arm_scale_q15()
158 in3 = (q15_t) (__SSAT(out3, 16)); in arm_scale_q15()
159 in4 = (q15_t) (__SSAT(out4, 16)); in arm_scale_q15()
165 *pDst++ = (q15_t) (__SSAT(((q31_t) *pSrc++ * scaleFract) >> kShift, 16)); in arm_scale_q15()
166 *pDst++ = (q15_t) (__SSAT(((q31_t) *pSrc++ * scaleFract) >> kShift, 16)); in arm_scale_q15()
167 *pDst++ = (q15_t) (__SSAT(((q31_t) *pSrc++ * scaleFract) >> kShift, 16)); in arm_scale_q15()
168 *pDst++ = (q15_t) (__SSAT(((q31_t) *pSrc++ * scaleFract) >> kShift, 16)); in arm_scale_q15()
190 *pDst++ = (q15_t) (__SSAT(((q31_t) *pSrc++ * scaleFract) >> kShift, 16)); in arm_scale_q15()
/third_party/cmsis/CMSIS/DSP/Source/SupportFunctions/
Darm_float_to_q15.c108 *pDst++ = (q15_t) (__SSAT((q31_t) (in), 16)); in arm_float_to_q15()
114 *pDst++ = (q15_t) __SSAT((q31_t) (*pSrc++ * 32768.0f), 16); in arm_float_to_q15()
201 *pDst++ = (q15_t) (__SSAT((q31_t) (in), 16)); in arm_float_to_q15()
207 *pDst++ = (q15_t) __SSAT((q31_t) (*pIn++ * 32768.0f), 16); in arm_float_to_q15()
242 *pDst++ = (q15_t) (__SSAT((q31_t) (in), 16)); in arm_float_to_q15()
246 *pDst++ = (q15_t) (__SSAT((q31_t) (in), 16)); in arm_float_to_q15()
250 *pDst++ = (q15_t) (__SSAT((q31_t) (in), 16)); in arm_float_to_q15()
254 *pDst++ = (q15_t) (__SSAT((q31_t) (in), 16)); in arm_float_to_q15()
258 *pDst++ = (q15_t) __SSAT((q31_t) (*pIn++ * 32768.0f), 16); in arm_float_to_q15()
259 *pDst++ = (q15_t) __SSAT((q31_t) (*pIn++ * 32768.0f), 16); in arm_float_to_q15()
[all …]
Darm_float_to_q7.c125 *pDst++ = (q7_t) (__SSAT((q15_t) (in), 8)); in arm_float_to_q7()
129 *pDst++ = (q7_t) __SSAT((q31_t) (*pSrcVec++ * 128.0f), 8); in arm_float_to_q7()
224 *pDst++ = (q7_t) (__SSAT((q15_t) (in), 8)); in arm_float_to_q7()
230 *pDst++ = __SSAT((q31_t) (*pIn++ * 128.0f), 8); in arm_float_to_q7()
266 *pDst++ = (q7_t) (__SSAT((q15_t) (in), 8)); in arm_float_to_q7()
270 *pDst++ = (q7_t) (__SSAT((q15_t) (in), 8)); in arm_float_to_q7()
274 *pDst++ = (q7_t) (__SSAT((q15_t) (in), 8)); in arm_float_to_q7()
278 *pDst++ = (q7_t) (__SSAT((q15_t) (in), 8)); in arm_float_to_q7()
282 *pDst++ = __SSAT((q31_t) (*pIn++ * 128.0f), 8); in arm_float_to_q7()
283 *pDst++ = __SSAT((q31_t) (*pIn++ * 128.0f), 8); in arm_float_to_q7()
[all …]
/third_party/cmsis/CMSIS/DSP/Include/dsp/
Dnone.h78 __STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) in __SSAT() function
251 r = __SSAT(((((q31_t)x << 24) >> 24) + (((q31_t)y << 24) >> 24)), 8) & (int32_t)0x000000FF; in __QADD8()
252 s = __SSAT(((((q31_t)x << 16) >> 24) + (((q31_t)y << 16) >> 24)), 8) & (int32_t)0x000000FF; in __QADD8()
253 t = __SSAT(((((q31_t)x << 8) >> 24) + (((q31_t)y << 8) >> 24)), 8) & (int32_t)0x000000FF; in __QADD8()
254 u = __SSAT(((((q31_t)x ) >> 24) + (((q31_t)y ) >> 24)), 8) & (int32_t)0x000000FF; in __QADD8()
269 r = __SSAT(((((q31_t)x << 24) >> 24) - (((q31_t)y << 24) >> 24)), 8) & (int32_t)0x000000FF; in __QSUB8()
270 s = __SSAT(((((q31_t)x << 16) >> 24) - (((q31_t)y << 16) >> 24)), 8) & (int32_t)0x000000FF; in __QSUB8()
271 t = __SSAT(((((q31_t)x << 8) >> 24) - (((q31_t)y << 8) >> 24)), 8) & (int32_t)0x000000FF; in __QSUB8()
272 u = __SSAT(((((q31_t)x ) >> 24) - (((q31_t)y ) >> 24)), 8) & (int32_t)0x000000FF; in __QSUB8()
288 r = __SSAT(((((q31_t)x << 16) >> 16) + (((q31_t)y << 16) >> 16)), 16) & (int32_t)0x0000FFFF; in __QADD16()
[all …]

123