Skip to main content

## i16x8_relaxed_dot_i8x16_i7x16

# Function i16x8_relaxed_dot_i8x16_i7x16

1.82.0 · Source

    pub fn i16x8_relaxed_dot_i8x16_i7x16(a: v128, b: v128) -> v128

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

A relaxed dot-product instruction.

This instruction will perform pairwise products of the 8-bit values in `a` and `b` and then accumulate adjacent pairs into 16-bit results producing a final `i16x8` vector. The bytes of `a` are always interpreted as signed and the bytes in `b` may be interpreted as signed or unsigned. If the top bit in `b` isn’t set then the value is the same regardless of whether it’s signed or unsigned.

The accumulation into 16-bit values may be saturated on some platforms, and on other platforms it may wrap-around on overflow.