vec_ste in core::arch::powerpc - Rust
Description: Vector Store Element Indexed

Skip to main content

## vec_ste

# Function vec_ste

Source

    pub unsafe fn vec_ste<T>(a: T, off: isize, c: <T as VectorSte>::Target)where
        T: VectorSte,

🔬This is a nightly-only experimental API. (`stdarch_powerpc` #111145)
Available on PowerPC and target feature `altivec` only.
Expand description

Vector Store Element Indexed

### §Purpose

Stores a single element from a 16-byte vector into memory at the address specified by a displacement and a pointer, aligned to the element size.

### §Operation

The integer value b is added to the pointer value c. The resulting address is rounded down to the nearest address that is a multiple of es, where es is 1 for char pointers, 2 for short pointers, and 4 for float or int pointers. An element offset eo is calculated by taking the resultant address modulo 16. The vector element of a at offset eo is stored to the resultant address.

### §Notes

Be careful to note that the address (b+c) is aligned to an element boundary. Do not attempt to store unaligned data with this intrinsic.