We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

_mm_packs_epi16

Microsoft Specific

Packs the 16 signed 16-bit integers from a and b into 8-bit integers and saturates.

__m128i _mm_packs_epi16 (__m128i a, __m128i b);
PACKSSWB

r0 := SignedSaturate(a0)
r1 := SignedSaturate(a1)
...
r7 := SignedSaturate(a7)
r8 := SignedSaturate(b0)
r9 := SignedSaturate(b1)
...
r15 := SignedSaturate(b7)

Header: emmintrin.h

END Microsoft Specific

Show: