Skip to content

Commit

Permalink
Remove __m64 support
Browse files Browse the repository at this point in the history
This is necessary, because support for `__m64` was removed from nighly
Rust [1].

Fixes #1050.

[1] rust-lang/stdarch#823
  • Loading branch information
vks committed Oct 15, 2020
1 parent 5eb27f0 commit fe34550
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/distributions/integer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
use crate::distributions::{Distribution, Standard};
use crate::Rng;
#[cfg(all(target_arch = "x86", feature = "simd_support"))]
use core::arch::x86::{__m64, __m128i, __m256i};
use core::arch::x86::{__m128i, __m256i};
#[cfg(all(target_arch = "x86_64", feature = "simd_support"))]
use core::arch::x86_64::{__m64, __m128i, __m256i};
use core::arch::x86_64::{__m128i, __m256i};
#[cfg(not(target_os = "emscripten"))] use core::num::NonZeroU128;
use core::num::{NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize};
#[cfg(feature = "simd_support")] use packed_simd::*;
Expand Down Expand Up @@ -158,7 +158,7 @@ simd_impl!(512, u8x64, i8x64, u16x32, i16x32, u32x16, i32x16, u64x8, i64x8,);
feature = "simd_support",
any(target_arch = "x86", target_arch = "x86_64")
))]
simd_impl!((__m64, u8x8), (__m128i, u8x16), (__m256i, u8x32),);
simd_impl!((__m128i, u8x16), (__m256i, u8x32),);

#[cfg(test)]
mod tests {
Expand Down
3 changes: 0 additions & 3 deletions src/distributions/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ mod simd_wmul {
}

wmul_impl! { (u16x2, u32x2),, 16 }
#[cfg(not(target_feature = "sse2"))]
wmul_impl! { (u16x4, u32x4),, 16 }
#[cfg(not(target_feature = "sse4.2"))]
wmul_impl! { (u16x8, u32x8),, 16 }
Expand All @@ -186,8 +185,6 @@ mod simd_wmul {
};
}

#[cfg(target_feature = "sse2")]
wmul_impl_16! { u16x4, __m64, _mm_mulhi_pu16, _mm_mullo_pi16 }
#[cfg(target_feature = "sse4.2")]
wmul_impl_16! { u16x8, __m128i, _mm_mulhi_epu16, _mm_mullo_epi16 }
#[cfg(target_feature = "avx2")]
Expand Down

0 comments on commit fe34550

Please sign in to comment.