2.3.9 VectorNegate

Description

VectorNegate negates (changes the sign of) the values of the elements in the source vector and places them in the destination vector.

Prototype

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 Profile

Device

Program Words

Cycles

PIC32A

10

32 + (numElems)

System resource usage

  • W0…W3 - used, not restored
  • CORCON - saved, used, restored
  • REPEAT instruction(s) usage – None