1.1.2.10 mchp_scale_q31()

void mchp_scale_q31 (const q31_t * pSrc, q31_t scaleFract, int8_t shift, q31_t * pDst, uint32_t blockSize)

Multiplies a Q31 vector by a scalar with post-shift.

Parameters:
in pSrc

points to the input vector

in scaleFract

fractional portion of the scale value (Q31)

in shift

number of bits to shift the result (positive = left)

out pDst

points to the output vector

in blockSize

number of samples in the vector

Note:

All input and output arrays must be at least blockSize elements long.