31.5.12 mips_vec_mulc32

Description

Multiplies each Q31 element of indata by the Q31 constant c and stores the results to outdata. The number of samples to be processed is given by the parameter N.

Mathematically,

outdata[n] = indata1[n] x c

Include

dsplib_dsp.h

Prototype

void
mips_vec_mulc32
(
       int32 *outdata,
       int32 *indata,
       int32 c,
       int N
);

Argument

outdata: Output array of 32-bit fixed-point elements in Q31 format.

indata: Input array with 32-bit fixed-point elements in Q31 format.

c: 32-bit fixed-point constant.

N: Number of samples.

Return Value

None.

Remarks

  • The pointers outdata and indata must be aligned on 4-byte boundaries.
  • N must be larger than or equal to 4 and a multiple of 4.