_mm_shuffle_ps() equivalent for integer vectors (__m128i)?
问题 The _mm_shuffle_ps() intrinsic allows one to interleave float inputs into low 2 floats and high 2 floats of the output. For example: R = _mm_shuffle_ps(L1, H1, _MM_SHUFFLE(3,2,3,2)) will result in: R[0] = L1[2]; R[1] = L1[3]; R[2] = H1[2]; R[3] = H1[3] I wanted to know if there was a similar intrinsic available for the integer data type? Something that took two __m128i variables and a mask for interleaving? The _mm_shuffle_epi32() intrinsic, takes just one 128-bit vector instead of two. 回答1: