Developer Guide and Reference

Contents

Packed Format Conversion Intrinsics

These Intel® Streaming SIMD Extensions 4 (Intel® SSE4) intrinsics convert a packed integer to a zero-extended or sign-extended integer with wider type. The prototypes for these intrinsics are in the
smmintrin.h
file.
To use these intrinsics, include the
immintrin.h
file as follows:
#include <immintrin.h>
Intrinsic Syntax
Operation
Corresponding
Intel® SSE4 Instruction
__m128i _mm_cvtepi8_epi32(__m128i a)
Sign extend four bytes into four doublewords
PMOVSXBD
__m128i _mm_cvtepi8_epi64 (__m128i a)
Sign extend two bytes into two quadwords
PMOVSXBQ
__m128i _mm_cvtepi8_epi16(__m128i a)
Sign extend eight bytes into eight words
PMOVSXBW
__m128i _mm_cvtepi32_epi64(__m128i a)
Sign extend two doublewords into two quadwords
PMOVSXDQ
__m128i _mm_cvtepi16_epi32(__m128i a)