Rotate V right by R bit positions.

Synopsis

Declared in <llvm/ADT/bit.h>

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

Return Value

V rotated right by R bit positions.

Note

The return value should not be discarded.

Parameters

Name

Description

V

Unsigned value to rotate.

R

Number of bit positions to rotate right.

Created with MrDocs