i32x4_relaxed_laneselect in core::arch::wasm32 - Rust
Description: A relaxed version of `v128_bitselect` where this either behaves the same as `v128_bitselect` or the high bit of each lane `m` is inspected and the corresponding lane of `a` is chosen if the bit is 1 or the lane of `b` is chosen if it’s zero.

Skip to main content

## i32x4_relaxed_laneselect

# Function i32x4_relaxed_laneselect

1.82.0 · Source

    pub fn i32x4_relaxed_laneselect(a: v128, b: v128, m: v128) -> v128

Available on WebAssembly and target feature `relaxed-simd` only.
Expand description

A relaxed version of `v128_bitselect` where this either behaves the same as `v128_bitselect` or the high bit of each lane `m` is inspected and the corresponding lane of `a` is chosen if the bit is 1 or the lane of `b` is chosen if it’s zero.

If the `m` mask’s lanes are either all-one or all-zero then this instruction is the same as `v128_bitselect`.