VEC_SLL(ARG1, ARG2)

Purpose

Left shifts a vector by a given number of bits.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) integer vector, unsigned vector, or pixel vector.
ARG2
An INTENT(IN) unsigned vector. Each byte of ARG2 must contain the same value.

Result type and attributes

The result is of the same type as ARG1.

Result value

The result is the contents of ARG1, shifted left by the number of bits specified by the 3 least significant bits of ARG2. The bits that are shifted out are replaced by zeroes.