Sqrt

Square root

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwsSqrt_32f ( const Fw32f * pSrcFw32f * pDstint len );
FwStatus   fwsSqrt_64f ( const Fw64f * pSrcFw64f * pDstint len );
FwStatus   fwsSqrt_32fc ( const Fw32fc * pSrcFw32fc * pDstint len );
FwStatus   fwsSqrt_64fc ( const Fw64fc * pSrcFw64fc * pDstint len );
FwStatus   fwsSqrt_32f_I ( Fw32f * pSrcDstint len );
FwStatus   fwsSqrt_64f_I ( Fw64f * pSrcDstint len );
FwStatus   fwsSqrt_32fc_I ( Fw32fc * pSrcDstint len );
FwStatus   fwsSqrt_64fc_I ( Fw64fc * pSrcDstint len );
FwStatus   fwsSqrt_8u_Sfs ( const Fw8u * pSrcFw8u * pDstint lenint scaleFactor );
FwStatus   fwsSqrt_16s_Sfs ( const Fw16s * pSrcFw16s * pDstint lenint scaleFactor );
FwStatus   fwsSqrt_16u_Sfs ( const Fw16u * pSrcFw16u * pDstint lenint scaleFactor );
FwStatus   fwsSqrt_32s16s_Sfs ( const Fw32s * pSrcFw16s * pDstint lenint scaleFactor );
FwStatus   fwsSqrt_64s16s_Sfs ( const Fw64s * pSrcFw16s * pDstint lenint scaleFactor );
FwStatus   fwsSqrt_8u_ISfs ( Fw8u * pSrcDstint lenint scaleFactor );
FwStatus   fwsSqrt_16s_ISfs ( Fw16s * pSrcDstint lenint scaleFactor );
FwStatus   fwsSqrt_16u_ISfs ( Fw16u * pSrcDstint lenint scaleFactor );
FwStatus   fwsSqrt_64s_Sfs ( const Fw64s * pSrcFw64s * pDstint lenint scaleFactor );
FwStatus   fwsSqrt_64s_ISfs ( Fw64s * pSrcDstint lenint scaleFactor );
FwStatus   fwsSqrt_16sc_ISfs ( Fw16sc * pSrcDstint lenint scaleFactor );
FwStatus   fwsSqrt_16sc_Sfs ( const Fw16sc * pSrcFw16sc * pDstint 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 root 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.