I have the following:
int j0 = 190;
int j1 = 191;
int j2 = 192;
int j3 = 193;
__m128i jv = _mm_set_epi32(j3, j2, j1, j0);
__m256d rij = _mm256_set_pd(2.8, 1.8, 2.1, 3.4);
__m256d sij = _mm256_set1_pd(2.5);
__m256d mask = sij - rij;
From the information from mask
, I would like to pack integers which satisfy rij < sij
.
In the above example, the desired return is
[X, X, 192, 191],
where X
means we do not care what the value is.
How do I get this result using AVX2 intrinsics?
Thanks.