Skip to content

Commit 7198ebb

Browse files
committed
fix build on pre-sse2 CPUs
Build fails on Pentium 3
1 parent 9d3e141 commit 7198ebb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/i32x4_.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ impl i32x4 {
671671
#[must_use]
672672
pub fn move_mask(self) -> i32 {
673673
pick! {
674-
if #[cfg(target_feature="sse")] {
674+
if #[cfg(target_feature="sse2")] {
675675
// use f32 move_mask since it is the same size as i32
676676
move_mask_m128(cast(self.sse))
677677
} else if #[cfg(target_feature="simd128")] {
@@ -702,7 +702,7 @@ impl i32x4 {
702702
#[must_use]
703703
pub fn any(self) -> bool {
704704
pick! {
705-
if #[cfg(target_feature="sse")] {
705+
if #[cfg(target_feature="sse2")] {
706706
// use f32 move_mask since it is the same size as i32
707707
move_mask_m128(cast(self.sse)) != 0
708708
} else if #[cfg(target_feature="simd128")] {
@@ -723,7 +723,7 @@ impl i32x4 {
723723
#[must_use]
724724
pub fn all(self) -> bool {
725725
pick! {
726-
if #[cfg(target_feature="sse")] {
726+
if #[cfg(target_feature="sse2")] {
727727
// use f32 move_mask since it is the same size as i32
728728
move_mask_m128(cast(self.sse)) == 0b1111
729729
} else if #[cfg(target_feature="simd128")] {

0 commit comments

Comments
 (0)