Intrinsics for Logical Shift Operations
- _mm256_sll_epi16/32/64
Logical shift of word/doubleword/quadword elements to left according to specified number. The corresponding Intel® AVX2 instruction is VPSLLW, VPSLLD, or VPSLLQ.
- _mm256_slli_epi16/32/64
Logical shift of word/doubleword/quadword elements to left according to specified number. The corresponding Intel® AVX2 instruction is VPSLLW, VPSLLD, or VPSLLQ.
- _mm256_sllv_epi32/64
Logical shift of doubleword/quadword elements to left according variable values. The corresponding Intel® AVX2 instruction is VPSLLVD or VPSLLVQ.
- _mm_sllv_epi32/64
Logical shift of word/doubleword elements in a 128-bit vector to left according variable values. The corresponding Intel® AVX2 instruction is VPSLLVD or VPSLLVQ.
- _mm256_slli_si256
Logical shift of byte elements to left according to specified number. The corresponding Intel® AVX2 instruction is VPSLLDQ.
- _mm256_srli_si256
Logical shift of byte elements to right according to specified number. The corresponding Intel® AVX2 instruction is VPSRLDQ.
- _mm256_srl_epi16/32/64
Logical shift of word/doubleword/quadword elements to right according to specified number. The corresponding Intel® AVX2 instruction is VPSRLW, VPSRLD, or VPSRLQ.
- _mm256_srli_epi16/32/64
Logical shift of word/doubleword/quadword elements to right according to specified number. The corresponding Intel® AVX2 instruction is VPSRLW, VPSRLD, or VPSRLQ.
- _mm256_srlv_epi32/64
Logical shift of doubleword/quadword elements to right according variable values. The corresponding Intel® AVX2 instruction is VPSRLVD or VPSRLVQ.
- _mm_srlv_epi32/64
Logical shift of word/doubleword elements in a 128-bit vector to right according variable values. The corresponding Intel® AVX2 instruction is VPSRLVD or VPSRLVQ.