AddProduct

Add product

Supported Technologies

MT, SSE2

Synopsis

FwStatus   fwsAddProduct_32f ( const Fw32f * pSrc1, const Fw32f * pSrc2, Fw32f * pSrcDst, int len );
FwStatus   fwsAddProduct_64f ( const Fw64f * pSrc1, const Fw64f * pSrc2, Fw64f * pSrcDst, int len );
FwStatus   fwsAddProduct_32fc ( const Fw32fc * pSrc1, const Fw32fc * pSrc2, Fw32fc * pSrcDst, int len );
FwStatus   fwsAddProduct_64fc ( const Fw64fc * pSrc1, const Fw64fc * pSrc2, Fw64fc * pSrcDst, int len );
FwStatus   fwsAddProduct_16s_Sfs ( const Fw16s * pSrc1, const Fw16s * pSrc2, Fw16s * pSrcDst, int len, int scaleFactor );
FwStatus   fwsAddProduct_32s_Sfs ( const Fw32s * pSrc1, const Fw32s * pSrc2, Fw32s * pSrcDst, int len, int scaleFactor );
FwStatus   fwsAddProduct_16s32s_Sfs ( const Fw16s * pSrc1, const Fw16s * pSrc2, Fw32s * pSrcDst, int len, int scaleFactor );

Parameters

len   Specifies the number of elements in a 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, add the product of the data in buffer 1 and the data in buffer 2 to the data in buffer 1, and write the sum back to the source buffer.