VEC_RL(ARG1, ARG2)

Purpose

Rotates each element of a vector left by a given number of bits.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) integer vector or unsigned vector.
ARG2
An INTENT(IN) unsigned vector containing elements of the same kind as the elements of ARG1.

Result type and attributes

The result is of the same type as ARG1.

Result value

Each element of the result is obtained by rotating the corresponding element of ARG1 left by the number of bits specified by the corresponding element of ARG2.