Skip to content

Commit

Permalink
Enable extra target features
Browse files Browse the repository at this point in the history
  • Loading branch information
alion02 committed Dec 2, 2024
1 parent 998bb82 commit 474fc8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/day1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ macro_rules! get_arr {
};
}

#[target_feature(enable = "avx2,bmi1,bmi2,cmpxchg16b,lzcnt,movbe,popcnt")]
unsafe fn inner1(s: &str) -> impl Display {
let s = s.as_bytes();

Expand Down Expand Up @@ -81,6 +82,7 @@ unsafe fn inner1(s: &str) -> impl Display {
sum
}

#[target_feature(enable = "avx2,bmi1,bmi2,cmpxchg16b,lzcnt,movbe,popcnt")]
unsafe fn inner2(s: &str) -> impl Display {
let s = s.as_bytes();

Expand Down

0 comments on commit 474fc8d

Please sign in to comment.