Function core::arch::wasm64::i8x16_relaxed_swizzle
source · pub fn i8x16_relaxed_swizzle(a: v128, s: v128) -> v128🔬This is a nightly-only experimental API. (
stdsimd #48556)Available on
target_family="wasm" and target feature relaxed-simd and WebAssembly only.Expand description
i8x16_swizzle(a, s) 的轻松版本,它使用 s 中的索引从 a 中选择 lanes。
[0,15] 范围内的索引将选择 a 的第 i 个元素。
如果 s 的任何元素的高位被设置 (意味着 128 或更大),则相应的输出 lane 保证为零。
否则,如果 s 的元素在 [16,128) 范围内,则输出 lane 是
0 或 a[s[i] % 16] 取决于实现。