Function core::arch::powerpc64::vec_sel

source ·
pub unsafe fn vec_sel<T, U>(a: T, b: T, c: U) -> T
where T: VectorSel<U>,
🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Available on (PowerPC or PowerPC-64) and target feature altivec and PowerPC-64 only.
Expand description

Vector Select

§Purpose

Returns a vector selecting bits from two source vectors depending on the corresponding bit values of a third source vector.

§Result value

Each bit of r has the value of the corresponding bit of a if the corresponding bit of c is 0. Otherwise, the bit of r has the value of the corresponding bit of b.