vec_sro in core::arch::powerpc - Rust (original) (raw)

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

where
    T: VectorSro<U>,

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)

Available on (PowerPC or PowerPC-64) and target feature altivec and PowerPC 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.