llvm::rotl

Rotate V left by R bit positions.

Synopsis

Declared in <llvm/ADT/bit.h>

template<typename T>
requires std::is_unsigned_v<T>
[[nodiscard]]
constexpr
T
rotl(
    T V,
    int R);

Return Value

V rotated left by R bit positions.

NOTE

The return value should not be discarded.

Parameters

NameDescription
VUnsigned value to rotate.
RNumber of bit positions to rotate left.