Microchip PIC32AK1216GC41048 handleiding
Handleiding
Je bekijkt pagina 16 van 76

Vector Funcons
User Guide
© 2025 Microchip Technology Inc. and its subsidiaries
DS70005605A - 16
fractional* VectorNegate (int numElems, fractional* dstV, fractional* srcV1);
Arguments
Parameters Description
numElems
Number of elements in the source vectors
dstV
Pointer to the destination vector
srcV1
Pointer to the source vector
Returns
Pointer to the base address of the destination vector.
Remarks
The negated value of 0x80000000 is set to 0x7FFFFFFF.
This function can be computed in place.
Source File
• vneg_aa.s
Function Prole
Device Program Words Cycles
PIC32A
10 32 + (numElems)
System resource usage
• W0…W3 - used, not restored
• CORCON - saved, used, restored
• REPEATinstruction(s) usage – None
2.3.10. VectorPower
Description
VectorPowercomputes the power of a source vector as the sum of the squares of its elements.
Prototype
fractional VectorPower(int numElems, fractional* srcV);
Arguments
Parameters Description
numElems
Number of elements in the source vectors
srcV
Pointer to the source vector
Returns
Value of the vector’s power (sum of squares).
Remarks
If the absolute value ofsum-of-squaresis larger than the maximum value of 1.31 fractional data type,
the operation results in saturation.
This function can beself-applicable.
Source File
Bekijk gratis de handleiding van Microchip PIC32AK1216GC41048, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.
Productinformatie
Merk | Microchip |
Model | PIC32AK1216GC41048 |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 11302 MB |