SubCRev

Subtract from a constant

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwsSubCRev_32f ( const Fw32f * pSrcFw32f valFw32f * pDstint len );
FwStatus   fwsSubCRev_64f ( const Fw64f * pSrcFw64f valFw64f * pDstint len );
FwStatus   fwsSubCRev_32fc ( const Fw32fc * pSrcFw32fc valFw32fc * pDstint len );
FwStatus   fwsSubCRev_64fc ( const Fw64fc * pSrcFw64fc valFw64fc * pDstint len );
FwStatus   fwsSubCRev_32f_I ( Fw32f valFw32f * pSrcDstint len );
FwStatus   fwsSubCRev_64f_I ( Fw64f valFw64f * pSrcDstint len );
FwStatus   fwsSubCRev_32fc_I ( Fw32fc valFw32fc * pSrcDstint len );
FwStatus   fwsSubCRev_64fc_I ( Fw64fc valFw64fc * pSrcDstint len );
FwStatus   fwsSubCRev_8u_Sfs ( const Fw8u * pSrcFw8u valFw8u * pDstint lenint scaleFactor );
FwStatus   fwsSubCRev_16s_Sfs ( const Fw16s * pSrcFw16s valFw16s * pDstint lenint scaleFactor );
FwStatus   fwsSubCRev_32s_Sfs ( const Fw32s * pSrcFw32s valFw32s * pDstint lenint scaleFactor );
FwStatus   fwsSubCRev_16sc_Sfs ( const Fw16sc * pSrcFw16sc valFw16sc * pDstint lenint scaleFactor );
FwStatus   fwsSubCRev_32sc_Sfs ( const Fw32sc * pSrcFw32sc valFw32sc * pDstint lenint scaleFactor );
FwStatus   fwsSubCRev_8u_ISfs ( Fw8u valFw8u * pSrcDstint lenint scaleFactor );
FwStatus   fwsSubCRev_16s_ISfs ( Fw16s valFw16s * pSrcDstint lenint scaleFactor );
FwStatus   fwsSubCRev_32s_ISfs ( Fw32s valFw32s * pSrcDstint lenint scaleFactor );
FwStatus   fwsSubCRev_16sc_ISfs ( Fw16sc valFw16sc * pSrcDstint lenint scaleFactor );
FwStatus   fwsSubCRev_32sc_ISfs ( Fw32sc valFw32sc * 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).
val   Specified value.

Description

These functions step through vector elements in a source buffer and subtract source data from a specified constant value.

The difference 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.