vec_sel in core::arch::powerpc64 - Rust
Description: Vector Select

Skip to main content

## vec_sel

# Function vec_sel

Source

    pub unsafe fn vec_sel<T, U>(a: T, b: T, c: U) -> Twhere
        T: VectorSel<U>,

🔬This is a nightly-only experimental API. (`stdarch_powerpc` #111145)
Available on PowerPC64 and target feature `altivec` 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.