Packed DWORD to Unsigned WORD Intrinsic

The prototype for this Intel® Streaming SIMD Extensions (Intel® SSE4) intrinsic is in the smmintrin.h file.

To use this intrinsic, include the immintrin.h file as follows:

#include <immintrin.h>

_mm_packus_epi32

__m128i _mm_packus_epi32(__m128i m1, __m128i m2);

Converts eight packed signed doublewords into eight packed unsigned words, using unsigned saturation to handle overflow condition.

Corresponding instruction: PACKUSDW

For more complete information about compiler optimizations, see our Optimization Notice.