LShiftC

Left shift by a constant value

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwsLShiftC_8u ( const Fw8u * pSrc, int val, Fw8u * pDst, int len );
FwStatus   fwsLShiftC_16s ( const Fw16s * pSrc, int val, Fw16s * pDst, int len );
FwStatus   fwsLShiftC_16u ( const Fw16u * pSrc, int val, Fw16u * pDst, int len );
FwStatus   fwsLShiftC_32s ( const Fw32s * pSrc, int val, Fw32s * pDst, int len );
FwStatus   fwsLShiftC_8u_I ( int val, Fw8u * pSrcDst, int len );
FwStatus   fwsLShiftC_16u_I ( int val, Fw16u * pSrcDst, int len );
FwStatus   fwsLShiftC_16s_I ( int val, Fw16s * pSrcDst, int len );
FwStatus   fwsLShiftC_32s_I ( int val, Fw32s * pSrcDst, int len );

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

Description

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.