Function core::arch::wasm32::u16x8_shuffle

1.54.0 · source ·
pub fn u16x8_shuffle<const I0: usize, const I1: usize, const I2: usize, const I3: usize, const I4: usize, const I5: usize, const I6: usize, const I7: usize>(
    a: v128,
    b: v128
) -> v128
Available on target_family="wasm" and target feature simd128 and WebAssembly only.
Expand description

i8x16_shuffle 相同,只是操作起来好像输入是八个 16 位整数,仅需 8 个索引即可重排。

[0, 7] 范围内的索引从 a 中选择,而 [8, 15] 则从 b 中选择。 请注意,这将生成 i8x16.shuffle 指令,因为没有原生 i16x8.shuffle 指令 (不需要一个,因为 i8x16.shuffle 就足够了)。