simdpp::shift_l

From cppreference.com
< int
template<unsigned N, class E1>
Ret<N, _DETAIL_> shift_l( const Vec1<N,E1>& a, unsigned shift );
template<unsigned shift, unsigned N, class E1>
Ret<N, _DETAIL_> shift_l( const Vec1<N,E1>& a );

Shifts values in the given integer vector left by shift bits. Zero bits are shifted in. The implementation behaves as if the following set of overloads is provided:

Ret Vec1
int8 int8
uint8 uint8
int16 int16
uint16 uint16
int32 int32
uint32 uint32
int64 int64
uint64 uint64

The return type is a vector expression.

Contents

Parameters

a - integer vector
shift - the number of bits to shift

Return value

A vector expression evaluating to a << shift.

Equivalent operation

r0 = a0 << shift
...
rN = aN << shift

See also