simd_funnel_shr in std::intrinsics::simd - Rust
Description: Funnel Shifts vector right elementwise, with UB on overflow.

## simd_funnel_shr

# Function simd_funnel_shr

Source

    pub const unsafe fn simd_funnel_shr<T>(a: T, b: T, shift: T) -> T

🔬This is a nightly-only experimental API. (`core_intrinsics`)
Expand description

Funnel Shifts vector right elementwise, with UB on overflow.

Concatenates `a` and `b` elementwise (with `a` in the most significant half), creating a vector of the same length, but with each element being twice as wide. Then shift this vector right elementwise by `shift`, shifting in zeros, and extract the least significant half of each of the elements. If `a` and `b` are the same, this is equivalent to an elementwise rotate right operation.

`T` must be a vector of integers.

## §Safety

Each element of `shift` must be less than `<int>::BITS`.