Function swap¶
function swap(const vec<T, N> &) simd¶
template <size_t elements = 2, typename T, size_t N>
KFR_INTRINSIC vec<T, N> swap(const vec<T, N>& x) Swaps adjacent groups of elements lanes.
For elements == 2, pairs of adjacent lanes are swapped. More generally, blocks of elements consecutive lanes are swapped pairwise.
| elements | Number of lanes in each block to swap. |
| T | Element type of the vector. |
| N | Input vector length. |
| x | Source vector. |
A vector of length N with adjacent elements-sized blocks swapped. |
Fully qualified name: kfr::swap(const vec<T, N> &)
Declared at simd/shuffle.hpp:917
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.