Function core::arch::powerpc64::vec_insert

source ·
pub unsafe fn vec_insert<T, const IDX: u32>(
    a: T,
    b: <T as VectorInsert>::S,
) -> T
where T: VectorInsert,
🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Available on (PowerPC or PowerPC-64) and target feature altivec and PowerPC-64 only.
Expand description

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.