pub fn mul_u8i8_add_horizontal_saturating_m128i(a: m128i, b: m128i) -> m128i
Available with target feature ssse3 only.
Expand description

This is dumb and weird.

  • Vertically multiplies each u8 lane from a with an i8 lane from b, producing an i16 intermediate value.

  • These intermediate i16 values are horizontally added with saturation.

  • Intrinsic: _mm_maddubs_epi16

  • Assembly: pmaddubsw xmm, xmm