77 int32_t totShift = 15 - shift;
81 #ifndef ARM_MATH_CM0_FAMILY 83 q15_t in1, in2, in3, in4;
84 q31_t out1, out2, out3, out4;
87 #endif // #ifndef ARM_MATH_CM0_FAMILY 89 #ifdef ARM_MATH_MATRIX_CHECK 97 #endif // #ifdef ARM_MATH_MATRIX_CHECK 102 #ifndef ARM_MATH_CM0_FAMILY
106 blkCnt = numSamples >> 2;
121 out1 = (
q31_t) ((
q15_t) (inA1 >> 16) * scaleFract);
123 out3 = (
q31_t) ((
q15_t) (inA2 >> 16) * scaleFract);
126 out1 = out1 >> totShift;
128 out2 = out2 >> totShift;
130 out3 = out3 >> totShift;
131 out4 = out4 >> totShift;
133 in1 = (
q15_t) (__SSAT(out1, 16));
134 in2 = (
q15_t) (__SSAT(out2, 16));
135 in3 = (
q15_t) (__SSAT(out3, 16));
136 in4 = (
q15_t) (__SSAT(out4, 16));
152 blkCnt = numSamples % 0x4u;
168 (
q15_t) (__SSAT(((
q31_t) (*pIn++) * scaleFract) >> totShift, 16));
arm_status arm_mat_scale_q15(const arm_matrix_instance_q15 *pSrc, q15_t scaleFract, int32_t shift, arm_matrix_instance_q15 *pDst)
Q15 matrix scaling.
int16_t q15_t
16-bit fractional data type in 1.15 format.
Instance structure for the Q15 matrix structure.
#define _SIMD32_OFFSET(addr)
int32_t q31_t
32-bit fractional data type in 1.31 format.
arm_status
Error status returned by some functions in the library.