Skip to content

Function dupodd

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

template <typename T, size_t N>
KFR_INTRINSIC vec<T, N> dupodd(const vec<T, N>& x)

Duplicates each odd-indexed element into the preceding even-indexed lane.

For each pair (i, i+1), lane i is replaced with the value of lane i+1.

Template parameters
T Element type of the vector.
N Input vector length, must be even.
Parameters
x Source vector.
Returns
A vector of length N where each even lane equals its following odd lane.

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

Declared at simd/shuffle.hpp:679

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