Skip to main content

## vec_sral

# Function vec_sral

Source

    pub unsafe fn vec_sral<T>(a: T, b: vector_unsigned_char) -> Twhere
        T: VectorSral<vector_unsigned_char, Result = T>,

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

Vector Shift Right Arithmetic

Performs an algebraic right shift for a vector by a given number of bits. Each element of the result is obtained by shifting the corresponding element of a right by the number of bits specified by the last 3 bits of every byte of b. The bits that are shifted out are replaced by copies of the most significant bit of the element of a.