Skip to content

Commit 533f0fc

Browse files
Use relative intrinsics paths for bitmasks
1 parent 81484a3 commit 533f0fc

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Diff for: crates/core_simd/src/masks/bitmask.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,14 @@ where
105105
#[must_use = "method returns a new vector and does not mutate the original value"]
106106
pub fn to_int(self) -> Simd<T, LANES> {
107107
unsafe {
108-
crate::intrinsics::simd_select_bitmask(
109-
self.0,
110-
Simd::splat(T::TRUE),
111-
Simd::splat(T::FALSE),
112-
)
108+
intrinsics::simd_select_bitmask(self.0, Simd::splat(T::TRUE), Simd::splat(T::FALSE))
113109
}
114110
}
115111

116112
#[inline]
117113
#[must_use = "method returns a new mask and does not mutate the original value"]
118114
pub unsafe fn from_int_unchecked(value: Simd<T, LANES>) -> Self {
119-
unsafe { Self(crate::intrinsics::simd_bitmask(value), PhantomData) }
115+
unsafe { Self(intrinsics::simd_bitmask(value), PhantomData) }
120116
}
121117

122118
#[cfg(feature = "generic_const_exprs")]

Diff for: crates/core_simd/src/masks/full_masks.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ where
115115
pub fn to_bitmask(self) -> [u8; LaneCount::<LANES>::BITMASK_LEN] {
116116
unsafe {
117117
let mut bitmask: [u8; LaneCount::<LANES>::BITMASK_LEN] =
118-
crate::intrinsics::simd_bitmask(self.0);
118+
intrinsics::simd_bitmask(self.0);
119119

120120
// There is a bug where LLVM appears to implement this operation with the wrong
121121
// bit order.
@@ -144,7 +144,7 @@ where
144144
}
145145
}
146146

147-
Self::from_int_unchecked(crate::intrinsics::simd_select_bitmask(
147+
Self::from_int_unchecked(intrinsics::simd_select_bitmask(
148148
bitmask,
149149
Self::splat(true).to_int(),
150150
Self::splat(false).to_int(),

0 commit comments

Comments
 (0)