Skip to content

Commit a5ae240

Browse files
Fallback u8x8 shuffle_dyn on x86{_64}
1 parent 065021d commit a5ae240

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/codegen/shuffle1_dyn.rs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,7 @@ macro_rules! impl_fallback {
2828
macro_rules! impl_shuffle1_dyn {
2929
(u8x8) => {
3030
cfg_if! {
31-
if #[cfg(all(any(target_arch = "x86", target_arch = "x86_64"),
32-
target_feature = "ssse3"))] {
33-
impl Shuffle1Dyn for u8x8 {
34-
type Indices = Self;
35-
#[inline]
36-
fn shuffle1_dyn(self, indices: Self::Indices) -> Self {
37-
#[cfg(target_arch = "x86")]
38-
use crate::arch::x86::_mm_shuffle_pi8;
39-
#[cfg(target_arch = "x86_64")]
40-
use crate::arch::x86_64::_mm_shuffle_pi8;
41-
42-
unsafe {
43-
crate::mem::transmute(
44-
_mm_shuffle_pi8(
45-
crate::mem::transmute(self.0),
46-
crate::mem::transmute(indices.0)
47-
)
48-
)
49-
}
50-
}
51-
}
52-
} else if #[cfg(all(
31+
if #[cfg(all(
5332
any(
5433
all(target_aarch = "aarch64", target_feature = "neon"),
5534
all(target_aarch = "arm", target_feature = "v7",

0 commit comments

Comments
 (0)