MaxAbsIndx

Maximum absolute value with index

Supported Technologies

SSE2

Synopsis

FwStatus   fwsMaxAbsIndx_16s ( const Fw16s * pSrc, int len, Fw16s * pMaxAbs, int * pIndx );
FwStatus   fwsMaxAbsIndx_32s ( const Fw32s * pSrc, int len, Fw32s * pMaxAbs, int * pIndx );

Parameters

len   Specifies the number of elements in a buffer.
pIndx   Pointer to the destination buffer that contains the index of the maximum or minimum value in the source buffer.
pMaxAbs   Pointer to the destination buffer that contains the maximum absolute value in the source buffer.
pSrc   Pointer to a source buffer.

Description

These functions step through vector elements in a source buffer, find the maximum absolute value and its index.

The maximum absolute value and the index are written to locations specified by pointers.