Skip to main content

## u8x16_swizzle

# Function u8x16_swizzle

1.54.0 · Source

    pub fn u8x16_swizzle(a: v128, s: v128) -> v128

Available on `target_family=wasm` and WebAssembly and target feature `simd128` only.
Expand description

Returns a new vector with lanes selected from the lanes of the first input vector `a` specified in the second input vector `s`.

The indices `i` in range [0, 15] select the `i`-th element of `a`. For indices outside of the range the resulting lane is 0.