From c42d027debd1dbf65e0e8e455851bca4f05faa45 Mon Sep 17 00:00:00 2001 From: Vinzent Steinberg Date: Fri, 9 Oct 2020 01:13:10 +0200 Subject: [PATCH] Relax requirement for widening multiply implementation The specialized instructions are already available with `sse2`. --- src/distributions/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/distributions/utils.rs b/src/distributions/utils.rs index 3f2f696fd1a..e3bceb8a96c 100644 --- a/src/distributions/utils.rs +++ b/src/distributions/utils.rs @@ -160,7 +160,7 @@ mod simd_wmul { wmul_impl! { (u16x2, u32x2),, 16 } wmul_impl! { (u16x4, u32x4),, 16 } - #[cfg(not(target_feature = "sse4.2"))] + #[cfg(not(target_feature = "sse2"))] wmul_impl! { (u16x8, u32x8),, 16 } #[cfg(not(target_feature = "avx2"))] wmul_impl! { (u16x16, u32x16),, 16 } @@ -185,7 +185,7 @@ mod simd_wmul { }; } - #[cfg(target_feature = "sse4.2")] + #[cfg(target_feature = "sse2")] wmul_impl_16! { u16x8, __m128i, _mm_mulhi_epu16, _mm_mullo_epi16 } #[cfg(target_feature = "avx2")] wmul_impl_16! { u16x16, __m256i, _mm256_mulhi_epu16, _mm256_mullo_epi16 }