Skip to content

Commit

Permalink
Relax requirement for widening multiply implementation
Browse files Browse the repository at this point in the history
The specialized instructions are already available with `sse2`.
  • Loading branch information
vks committed Oct 15, 2020
1 parent fe34550 commit c42d027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/distributions/utils.rs
Expand Up @@ -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 }
Expand All @@ -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 }
Expand Down

0 comments on commit c42d027

Please sign in to comment.