Skip to content

Function inserthigh

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

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

Inserts a scalar x at the high (right) end of y, shifting y one lane to the low (left) side.

The lowest lane of y (index 0) is discarded; x occupies the highest lane. Given y = [y0, y1, ..., y(N-1)], the result is [y1, ..., y(N-1), x].

Template parameters
T Element type of the vector.
N Input vector length.
Parameters
x Scalar value to insert at the high end.
y Source vector.
Returns
A vector of length N with x at the last lane and y shifted left by one.

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

Declared at simd/shuffle.hpp:990

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