Sqr

Square

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwsSqr_32f ( const Fw32f * pSrcFw32f * pDstint len );
FwStatus   fwsSqr_64f ( const Fw64f * pSrcFw64f * pDstint len );
FwStatus   fwsSqr_32fc ( const Fw32fc * pSrcFw32fc * pDstint len );
FwStatus   fwsSqr_64fc ( const Fw64fc * pSrcFw64fc * pDstint len );
FwStatus   fwsSqr_32f_I ( Fw32f * pSrcDstint len );
FwStatus   fwsSqr_64f_I ( Fw64f * pSrcDstint len );
FwStatus   fwsSqr_32fc_I ( Fw32fc * pSrcDstint len );
FwStatus   fwsSqr_64fc_I ( Fw64fc * pSrcDstint len );
FwStatus   fwsSqr_8u_Sfs ( const Fw8u * pSrcFw8u * pDstint lenint scaleFactor );
FwStatus   fwsSqr_16s_Sfs ( const Fw16s * pSrcFw16s * pDstint lenint scaleFactor );
FwStatus   fwsSqr_16u_Sfs ( const Fw16u * pSrcFw16u * pDstint lenint scaleFactor );
FwStatus   fwsSqr_16sc_Sfs ( const Fw16sc * pSrcFw16sc * pDstint lenint scaleFactor );
FwStatus   fwsSqr_8u_ISfs ( Fw8u * pSrcDstint lenint scaleFactor );
FwStatus   fwsSqr_16s_ISfs ( Fw16s * pSrcDstint lenint scaleFactor );
FwStatus   fwsSqr_16u_ISfs ( Fw16u * pSrcDstint lenint scaleFactor );
FwStatus   fwsSqr_16sc_ISfs ( Fw16sc * pSrcDstint lenint scaleFactor );

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.
scaleFactor   Specifies an integer scaling factor for the Sfs operation. The returned result is multiplied by 2^(-scaleFactor).

Description

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

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

The 8-bit unsigned, 16-bit unsigned, and 16-bit signed versions perform an integer scaling operation before writing the results.