Partager via


_mm_madd_epi16

Microsoft Specific

Multiplies the 8 signed 16-bit integers from a by the 8 signed 16-bit integers from b.

__m128i _mm_madd_epi16 (__m128i a, __m128i b);
PMADDWD

Return Value

Adds the signed 32-bit integer results pairwise and packs the 4 signed 32-bit integer results.

r0 := (a0 * b0) + (a1 * b1)
r1 := (a2 * b2) + (a3 * b3)
r2 := (a4 * b4) + (a5 * b5)
r3 := (a6 * b6) + (a7 * b7)

Requirements

Header: emmintrin.h

END Microsoft Specific

See Also

Reference

Arithmetic Operations (Integer SSE2 Intrinsics)