Skip to content

Function dup

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

template <typename T, size_t N, size_t Nout = N * 2>
KFR_INTRINSIC vec<T, Nout> dup(const vec<T, N>& x)

Duplicates each element of x into a pair of adjacent lanes.

Element i of x becomes lanes 2*i and 2*i+1 of the result.

Template parameters
T Element type of the vector.
N Input vector length.
Nout Output length, defaults to N * 2.
Parameters
x Source vector.
Returns
A vector of length Nout with each input element duplicated into adjacent lanes.

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

Declared at simd/shuffle.hpp:849

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