Skip to content

Function rotateleft

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

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

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

Lanes shifted off the low end wrap around to the high 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 left by amount.

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

Declared at simd/shuffle.hpp:971

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