vec_xl_len in core::arch::powerpc64 - Rust
Description: Vector Load with Length

Skip to main content

## vec_xl_len

# Function vec_xl_len

Source

    pub unsafe fn vec_xl_len<T>(p: T, len: usize) -> <T as VectorXloads>::Resultwhere
        T: VectorXloads,

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

Vector Load with Length

### §Purpose

Loads a vector of a specified byte length.

### §Result value

Loads the number of bytes specified by b from the address specified in a. Initializes elements in order from the byte stream (as defined by the endianness of the target). Any bytes of elements that cannot be initialized from the number of loaded bytes have a zero value.

Between 0 and 16 bytes, inclusive, will be loaded. The length is specified by the least-significant byte of b, as min (b mod 256, 16). The behavior is undefined if the length argument is outside of the range 0–255, or if it is not a multiple of the vector element size.

### §Notes

vec_xl_len should not be used to load from cache-inhibited memory.