Skip to content

Commit

Permalink
Merge pull request #34 from he32/x86-vec-fix
Browse files Browse the repository at this point in the history
src/lib.rs: make conditionals for x86 vectorization more similar.
  • Loading branch information
quake authored Sep 13, 2024
2 parents 6a84129 + 459d426 commit a75dda5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ pub(crate) enum Vectorization {

#[inline(always)]
pub(crate) fn vectorization_support() -> Vectorization {
#[cfg(all(any(target_arch = "x86", target_arch = "x86_64")))]
#[cfg(all(
any(target_arch = "x86", target_arch = "x86_64"),
target_feature = "sse"
))]
{
use core::sync::atomic::{AtomicU8, Ordering};
static FLAGS: AtomicU8 = AtomicU8::new(u8::MAX);
Expand Down

0 comments on commit a75dda5

Please sign in to comment.