core::arch::wasm64

Function i16x8_relaxed_laneselect

1.82.0 · source
pub fn i16x8_relaxed_laneselect(a: v128, b: v128, m: v128) -> v128
Available on target_family="wasm" and target feature relaxed-simd and WebAssembly 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.