Function vec_sel

#[target_feature(enable = "altivec")]
pub unsafe fn vec_sel<T, U>(a: T, b: T, c: U) -> T
where
    T: VectorSel<U>,

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.