2.3.11 VectorScale
Description
VectorScale multiplies the values of all the elements in the source vector by a scale value and places the result in the destination vector.
Prototype
fractional* VectorScale (int numElems, fractional* dstV, fractional* srcV, fractional sclVal);
Arguments
Parameters |
Description |
---|---|
numElems |
Number of elements in the source vectors |
dstV |
Pointer to the destination vector |
srcV |
Pointer to the source vector |
sclVal |
Value by which to scale the vector elements |
Returns
Pointer to the base address of the destination vector.
Remarks
sclVal must be a fractional number in 1.31 format.
This function can be computed in place.
This function can be self-applicable.
Source File
- vscl_aa.s
Function Profile
Device |
Program Words |
Cycles |
---|---|---|
PIC32A |
20 |
40 + ⌈2.5 x numElems⌉ |
System resource usage
- W0…W4 - used, not restored
- W13 - saved, used, restored
- ACCA - used, not restored
- CORCON - saved, used, restored
- REPEAT instruction(s) usage – None