Skip to content

Function dupeven

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

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

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

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

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 odd lane equals its preceding even lane.

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

Declared at simd/shuffle.hpp:663

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