Abs

Get absolute value

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwsAbs_16s ( const Fw16s * pSrcFw16s * pDstint len );
FwStatus   fwsAbs_32s ( const Fw32s * pSrcFw32s * pDstint len );
FwStatus   fwsAbs_32f ( const Fw32f * pSrcFw32f * pDstint len );
FwStatus   fwsAbs_64f ( const Fw64f * pSrcFw64f * pDstint len );
FwStatus   fwsAbs_16s_I ( Fw16s * pSrcDstint len );
FwStatus   fwsAbs_32s_I ( Fw32s * pSrcDstint len );
FwStatus   fwsAbs_32f_I ( Fw32f * pSrcDstint len );
FwStatus   fwsAbs_64f_I ( Fw64f * pSrcDstint len );

Parameters

len   Specifies the number of elements in a buffer.
pDst   Pointer to a destination buffer.
pSrc   Pointer to a source buffer.
pSrcDst   Pointer to a buffer that is both the source and destination.

Description

These functions step through vector elements in a source buffer and calculate the absolute value of the source data.

The results can be written to a destination buffer or written back to the source buffer.