Left shift by a constant value

Supported Technologies

MT, SSE2, Family10h


FwStatus   fwsLShiftC_8u ( const Fw8u * pSrcint valFw8u * pDstint len );
FwStatus   fwsLShiftC_16s ( const Fw16s * pSrcint valFw16s * pDstint len );
FwStatus   fwsLShiftC_16u ( const Fw16u * pSrcint valFw16u * pDstint len );
FwStatus   fwsLShiftC_32s ( const Fw32s * pSrcint valFw32s * pDstint len );
FwStatus   fwsLShiftC_8u_I ( int valFw8u * pSrcDstint len );
FwStatus   fwsLShiftC_16u_I ( int valFw16u * pSrcDstint len );
FwStatus   fwsLShiftC_16s_I ( int valFw16s * pSrcDstint len );
FwStatus   fwsLShiftC_32s_I ( int valFw32s * pSrcDstint len );


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.
val   Specified value.


These functions step through vector elements in a source buffer and shift the bits of the source data a specified number of bit positions to the left.

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

Left-shifting is equivalent to multiplying by 2 to the constant power.