Function simd_funnel_shl

Source
pub unsafe fn simd_funnel_shl<T>(a: T, b: T, shift: T) -> T
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Funnel Shifts vector left 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 left elementwise by shift, shifting in zeros, and extract the most significant half of each of the elements. If a and b are the same, this is equivalent to an elementwise rotate left operation.

T must be a vector of integers.

§Safety

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