Function vec_insert
#[target_feature(enable = "altivec")]
pub unsafe fn vec_insert<T, const IDX: u32>(a: T, b: <T as VectorInsert>::Scalar) -> T
where
T: VectorInsert,
Vector Insert
Purpose
Returns a copy of vector b with element c replaced by the value of a.
Result value
r contains a copy of vector b with element c replaced by the value of a. This function uses modular arithmetic on c to determine the element number. For example, if c is out of range, the compiler uses c modulo the number of elements in the vector to determine the element position.