Function core::arch::wasm32::u8x16_swizzle

1.54.0 · source ·
pub fn u8x16_swizzle(a: v128, s: v128) -> v128
Available on target_family="wasm" and target feature simd128 and WebAssembly only.
Expand description

返回带有从第二个输入 vector s 中指定的第一个输入 vector a 的 lanes 中选择的 lanes 的新 vector。

范围 [0, 15] 中的索引 i 选择 a 的第 i 个元素。对于越界的索引,结果 lane 是 0.