Skip to content

Function rotateright

function rotateright(const vec<T, N> &, csize_t<amount>) simd

template <size_t amount, typename T, size_t N>
KFR_INTRINSIC vec<T, N> rotateright(const vec<T, N>& x, csize_t<amount> = csize_t<amount>())

Rotates the lanes of x to the right by amount positions.

Lanes shifted off the high end wrap around to the low end.

Template parameters
amount Number of positions to rotate by, in [0, N).
T Element type of the vector.
N Input vector length.
Parameters
x Source vector.
Returns
A vector of length N rotated right by amount.

Fully qualified name: kfr::rotateright(const vec<T, N> &, csize_t<amount>)

Declared at simd/shuffle.hpp:954

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.