Function core::intrinsics::simd::simd_shuffle
source · pub unsafe extern "platform-intrinsic" fn simd_shuffle<T, U, V>(
x: T,
y: T,
idx: U
) -> V
🔬This is a nightly-only experimental API. (
core_intrinsics
)Expand description
Shuffle two vectors by const indices.
T
must be a vector.
U
must be a const array of i32
s.
V
must be a vector with the same element type as T
and the same length as U
.
Concatenates x
and y
, then returns a new vector such that each element is selected from
the concatenation by the matching index in idx
.