Skip to main content

## vec_sro

# Function vec_sro

Source

    pub unsafe fn vec_sro<T, U>(a: T, b: U) -> <T as VectorSro<U>>::Resultwhere
        T: VectorSro<U>,

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

Vector Shift Right by Octets

### §Endian considerations

This intrinsic is not endian-neutral, so uses of vec_sro in big-endian code must be rewritten for little-endian targets. The shift count is in element 15 of b for big-endian, but in element 0 of b for little-endian.