Skip to content

Commit 9428917

Browse files
committed
_mm_cvtsi16_si128 is AVX512
1 parent 4a672af commit 9428917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xsimd/arch/xsimd_sse4_1.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ namespace xsimd
147147
else XSIMD_IF_CONSTEXPR(sizeof(T) == 8) {
148148
uint16_t tmp;
149149
memcpy(&tmp, mem, sizeof(tmp));
150-
auto bpack = _mm_cvtsi16_si128(tmp);
150+
auto bpack = _mm_cvtsi32_si128((uint32_t)tmp);
151151
return _mm_cmpgt_epi64(_mm_cvtepu8_epi64(bpack), _mm_set1_epi64x(0));
152152
}
153153
}

0 commit comments

Comments
 (0)