Div

Divide

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwsDiv_32f ( const Fw32f * pSrc1const Fw32f * pSrc2Fw32f * pDstint len );
FwStatus   fwsDiv_64f ( const Fw64f * pSrc1const Fw64f * pSrc2Fw64f * pDstint len );
FwStatus   fwsDiv_32fc ( const Fw32fc * pSrc1const Fw32fc * pSrc2Fw32fc * pDstint len );
FwStatus   fwsDiv_64fc ( const Fw64fc * pSrc1const Fw64fc * pSrc2Fw64fc * pDstint len );
FwStatus   fwsDiv_32f_I ( const Fw32f * pSrcFw32f * pSrcDstint len );
FwStatus   fwsDiv_64f_I ( const Fw64f * pSrcFw64f * pSrcDstint len );
FwStatus   fwsDiv_32fc_I ( const Fw32fc * pSrcFw32fc * pSrcDstint len );
FwStatus   fwsDiv_64fc_I ( const Fw64fc * pSrcFw64fc * pSrcDstint len );
FwStatus   fwsDiv_8u_Sfs ( const Fw8u * pSrc1const Fw8u * pSrc2Fw8u * pDstint lenint scaleFactor );
FwStatus   fwsDiv_16s_Sfs ( const Fw16s * pSrc1const Fw16s * pSrc2Fw16s * pDstint lenint scaleFactor );
FwStatus   fwsDiv_32s_Sfs ( const Fw32s * pSrc1const Fw32s * pSrc2Fw32s * pDstint lenint scaleFactor );
FwStatus   fwsDiv_16sc_Sfs ( const Fw16sc * pSrc1const Fw16sc * pSrc2Fw16sc * pDstint lenint scaleFactor );
FwStatus   fwsDiv_32s16s_Sfs ( const Fw16s * pSrc1const Fw32s * pSrc2Fw16s * pDstint lenint scaleFactor );
FwStatus   fwsDiv_8u_ISfs ( const Fw8u * pSrcFw8u * pSrcDstint lenint scaleFactor );
FwStatus   fwsDiv_16s_ISfs ( const Fw16s * pSrcFw16s * pSrcDstint lenint scaleFactor );
FwStatus   fwsDiv_16sc_ISfs ( const Fw16sc * pSrcFw16sc * pSrcDstint lenint scaleFactor );
FwStatus   fwsDiv_32s_ISfs ( const Fw32s * pSrcFw32s * 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.
pSrc1   Pointer to source buffer one.
pSrc2   Pointer to source buffer two.
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 two source buffers and divide the data in buffer 2 by the data in buffer 1.

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

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