Skip to content

Commit

Permalink
fix build on pre-sse2 CPUs (#187)
Browse files Browse the repository at this point in the history
Build fails on Pentium 3
  • Loading branch information
ceamac authored Jan 4, 2025
1 parent 9d3e141 commit f0a8ffa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/i32x4_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ impl i32x4 {
#[must_use]
pub fn move_mask(self) -> i32 {
pick! {
if #[cfg(target_feature="sse")] {
if #[cfg(target_feature="sse2")] {
// use f32 move_mask since it is the same size as i32
move_mask_m128(cast(self.sse))
} else if #[cfg(target_feature="simd128")] {
Expand Down Expand Up @@ -702,7 +702,7 @@ impl i32x4 {
#[must_use]
pub fn any(self) -> bool {
pick! {
if #[cfg(target_feature="sse")] {
if #[cfg(target_feature="sse2")] {
// use f32 move_mask since it is the same size as i32
move_mask_m128(cast(self.sse)) != 0
} else if #[cfg(target_feature="simd128")] {
Expand All @@ -723,7 +723,7 @@ impl i32x4 {
#[must_use]
pub fn all(self) -> bool {
pick! {
if #[cfg(target_feature="sse")] {
if #[cfg(target_feature="sse2")] {
// use f32 move_mask since it is the same size as i32
move_mask_m128(cast(self.sse)) == 0b1111
} else if #[cfg(target_feature="simd128")] {
Expand Down

0 comments on commit f0a8ffa

Please sign in to comment.