31.5.13 mips_vec_sub16
Description
Subtracts each element of indata2 from the corresponding element of indata1. The number of samples to be processed is given by the parameter N.
Mathematically,
outdata[n] = indata1[n] – indata2[n]
Include
dsplib_dsp.h
Prototype
void
mips_vec_sub16
(
int16 *outdata,
int16 *indata1,
int16 *indata2,
int N
);
Argument
outdata: Output array of 16-bit fixed-point elements in Q15 format.
indata1: First input array with 16-bit fixed-point elements in Q15 format.
indata2: Second input array with 16-bit fixed-point elements in Q15 format.
N: Number of samples.
Return Value
None.
Remarks
- The pointers outdata, indata1, and indata2 must be aligned on 4-byte boundaries.
- N must be larger than or equal to 4 and a multiple of 4.