Visible to Intel only — GUID: GUID-5E7A15EF-E439-4683-9871-B1C9123E7F40
Visible to Intel only — GUID: GUID-5E7A15EF-E439-4683-9871-B1C9123E7F40
<span class='option'>_mm256_srav_epi32 </span>
Arithmetic shift of doubleword elements to right according variable values. The corresponding Intel® AVX2 instruction is VPSRAVD.
extern __m256i _mm256_srav_epi32(__m256i s1, __m256i s2); |
s1 |
integer source vector used for the operation |
s2 |
integer source vector providing variable values for shift operation |
Performs an arithmetic shift of 32 bits (doublewords) in the individual data elements in source vector s1 to the right by the count value of corresponding data elements in source vector s2. As the bits in the data elements are shifted right, the empty high-order bits are filled with the initial value of the sign bit.
The count values are specified individually in each data element of the second source vector. If the unsigned integer value specified in the respective data element of the second source vector is greater than 31 (for a doubleword), then the destination data elements are filled with the initial value of the sign bit.
Result of the right-shift operation.