Skip to content

Commit

Permalink
Fix _mm_srli_epi64
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosm committed Aug 29, 2023
1 parent 2c665fe commit 6818ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core_arch/src/x86/sse2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ pub unsafe fn _mm_srl_epi32(a: __m128i, count: __m128i) -> __m128i {
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _mm_srli_epi64<const IMM8: i32>(a: __m128i) -> __m128i {
static_assert_uimm_bits!(IMM8, 8);
if IMM8 >= 32 {
if IMM8 >= 64 {
_mm_setzero_si128()
} else {
transmute(simd_shr(a.as_u64x2(), u64x2::splat(IMM8 as u64)))
Expand Down

0 comments on commit 6818ed8

Please sign in to comment.