Skip to content

Function rotatetwo

function rotatetwo(const vec<T, N> &, const vec<T, N> &) simd

template <size_t shift, typename T, size_t N>
KFR_INTRINSIC vec<T, N> rotatetwo(const vec<T, N>& lo, const vec<T, N>& hi)

Combines two vectors lo and hi with a rotation by shift lanes.

The result is formed from the concatenation of lo (low) and hi (high), shifted right by shift positions. When shift == 0 the result is lo; when shift == N the result is hi.

Template parameters
shift Number of lanes to shift by, in [0, N].
T Element type of the vectors.
N Length of each input vector.
Parameters
lo Low source vector.
hi High source vector.
Returns
A vector of length N drawn from the rotated concatenation of lo and hi.

Fully qualified name: kfr::rotatetwo(const vec<T, N> &, const vec<T, N> &)

Declared at simd/shuffle.hpp:939

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