Skip to content

Function insertlow

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

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

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

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

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

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

Declared at simd/shuffle.hpp:1008

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