3-560
INSTRUCTION SET REFERENCE
PSRLW/PSRLD/PSRLQ—Packed Shift Right Logical (Continued)
Intel C/C++ Compiler Intrinsic Equivalents
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64 _m_psrlw (__m64 m, __m64 count)
Version 4.0 and later Intel C/C++ Compiler intrinsic:
__m64 _mm_srl_pi16 (__m64 m, __m64 count)
Shifts four 16-bit values in m right the amount specified by count while shifting in zeroes.
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64 _m_psrlwi (__m64 m, int count)
Version 4.0 and later Intel C/C++ Compiler intrinsic:
__m64 _mm_srli_pi16 (__m64 m, int count)
Shifts four 16-bit values in m right the amount specified by count while shifting in zeroes. For
the best performance, count should be a constant.
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64 _m_psrld (__m64 m, __m64 count)
Version 4.0 and later Intel C/C++ Compiler intrinsic:
__m64 _mm_sri_pi32 (__m64 m, __m64 count)
Shifts two 32-bit values in m right the amount specified by count while shifting in zeroes.
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64 _m_psrldi (__m64 m, int count)
Version 4.0 and later Intel C/C++ Compiler intrinsic:
__m64 _mm_srli_pi32 (__m64 m, int count)
Shifts two 32-bit values in m right the amount specified by count while shifting in zeroes. For
the best performance, count should be a constant.
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64 _m_psrlq (__m64 m, __m64 count)
Version 4.0 and later Intel C/C++ Compiler intrinsic:
__m64 _mm_srl_si64 (__m64 m, __m64 count)
Shifts the 64-bit value in m right the amount specified by count while shifting in zeroes.