# Function vec_perm

Source

    pub unsafe fn vec_perm<T: VectorPerm>(a: T, b: T, c: vector_unsigned_char) -> T

🔬This is a nightly-only experimental API. (`stdarch_s390x` #135681)
Available on s390x and target feature `vector` only.
Expand description

Vector Permute

Returns a vector that contains some elements of two vectors, in the order specified by a third vector. Each byte of the result is selected by using the least significant 5 bits of the corresponding byte of c as an index into the concatenated bytes of a and b. Note: The vector generate mask built-in function `vec_genmask` could help generate the mask c.