2.3.3 VectorCopy
Description
VectorCopy copies the elements of the source vector into the beginning of an (already existing) destination vector, so that:
dstV[n] = srcV[n], 0 ≤ n < numElems
Prototype
fractional* VectorCopy (int numElems, fractional* dstV, fractional* srcV);
Arguments
Parameters |
Description |
---|---|
numElems |
Number of elements in the source vectors |
dstV |
Pointer to the destination vector |
srcV1 |
Pointer to the source one vector |
Returns
Pointer to the base address of the destination vector.
Remarks
The destination vector must already exist. The size of the destination vector must be greater than or equal to numElems.
This function can be computed in place. See Additional Remarks for comments on this mode of operation.
Source File
- vcopy_aa.s
Function Profile
Cycle counts for PIC32A | |
---|---|
Source Vector Size |
Cycles |
32 |
68 |
64 |
122 |
128 |
228 |
256 |
442 |
512 |
868 |
1024 |
1722 |
2048 |
3428 |
System resource usage
- W0…W3 - used, not restored
- One REPEAT instruction(s)