Function simd_insert

unsafe const fn simd_insert<T, U>(x: T, idx: u32, val: U) -> T

Inserts an element into a vector, returning the updated vector.

T must be a vector with element type U, and idx must be const.

Safety

idx must be in-bounds of the vector.