1.4.2.68 DSP_VectorCopyReverse32 Function
Reverses the order of elements in one vector and copies them into another.
Description
void DSP_VectorCopyReverse32(int32_t *outdata, int32_t *indata, int N);
Fills the first N values of an input vector Outdata with the reverse elements from INDATA. N must be a multiple of 4 and greater than 4 or will be truncated to the nearest multiple of 4. The vectors are both Q31 fractional format.
Preconditions
The pointers outdata and indata must be aligned on 4-byte boundaries. N must be greater than or equal to four and a multiple of four.
Parameters
outdata pointer to destination array of values (int32_t)
indata pointer to source array of elements (int32_t)
N number of samples (int)
Returns
None.
Remarks
None.
Example
int Num = 4; int32_t inBufTestA[8]={0x7FFFFFFF, 0x80000000, 0x73333333, 0x66666666, 0x19999999, 0x40000000, 0x7FFFFFFF, 0xB3333334}; _// 1, -1, 0.9, 0.8, 0.2, 0.5, 1, -0.6_ int32_t inBufTestB[8]={0x00000000, 0x7FFFFFFF, 0x40000000, 0x0CCCCCCC, 0x40000000, 0x60000000, 0x80000000, 0x20000000}; _// 0, 1, 0.5, 0.1, 0.75, 0.5, -1, 0.25_ DSP_VectorCopyReverse32(inBufTestA, inBufTestB, Num); _// inBufTestA = {0x0CCCCCCC, 0x40000000, 0x7FFFFFFF, 0x00000000,_ _// 0x19999999, 0x40000000, 0x7FFFFFFF, 0xB3333334}_ _// first 4 values copied reverse order_
C
void DSP_VectorCopyReverse32 (int32_t * outdata , int32_t * indata , int N );