Skip to content

Commit

Permalink
restrict imports to arm & nightly_simd
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdd committed Feb 24, 2024
1 parent 75d619d commit d575a56
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 37 deletions.
8 changes: 4 additions & 4 deletions src/simd/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ where
/// - `impl_SIMDInit_Int!`
/// - called in the `simd_i*.rs` files
/// - called in the `simd_u*.rs` files
/// - `impl_SIMDInit_FloatIgnoreNaN!`
/// - see the `simd_f*_return_nan.rs` files
/// - `impl_SIMDInit_FloatReturnNaN!`
/// - see the `simd_f*_return_nan.rs` files
/// - `impl_SIMDInit_FloatIgnoreNaN!`
/// - see the `simd_f*_ignore_nan.rs` files
///
/// The current (default) implementation is for the Int case - see `impl_SIMDInit_Int!`
Expand Down Expand Up @@ -250,7 +250,7 @@ pub(crate) use impl_SIMDInit_FloatReturnNaN; // Now classic paths Just Work™
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
all(target_arch = "aarch64", feature = "float"), // is stable for f64
target_arch = "aarch64", // is stable for f64
feature = "nightly_simd"
))]
macro_rules! impl_SIMDInit_FloatIgnoreNaN {
Expand Down Expand Up @@ -326,7 +326,7 @@ macro_rules! impl_SIMDInit_FloatIgnoreNaN {
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
all(target_arch = "aarch64", feature = "float"), // is stable for f64
target_arch = "aarch64", // is stable for f64
feature = "nightly_simd"
))]
pub(crate) use impl_SIMDInit_FloatIgnoreNaN; // Now classic paths Just Work™
Expand Down
10 changes: 5 additions & 5 deletions src/simd/simd_i16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::config::SIMDInstructionSet;
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::generic::{impl_SIMDArgMinMax, impl_SIMDInit_Int, SIMDArgMinMax, SIMDInit, SIMDOps};
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use crate::SCALAR;
#[cfg(target_arch = "aarch64")]
Expand All @@ -33,15 +33,15 @@ use std::arch::x86_64::*;
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::super::dtype_strategy::Int;

#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
const MAX_INDEX: usize = i16::MAX as usize;

Expand Down
10 changes: 5 additions & 5 deletions src/simd/simd_i32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::config::SIMDInstructionSet;
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::generic::{impl_SIMDArgMinMax, impl_SIMDInit_Int, SIMDArgMinMax, SIMDInit, SIMDOps};
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use crate::SCALAR;
#[cfg(target_arch = "aarch64")]
Expand All @@ -33,15 +33,15 @@ use std::arch::x86_64::*;
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::super::dtype_strategy::Int;

#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
const MAX_INDEX: usize = i32::MAX as usize;

Expand Down
6 changes: 3 additions & 3 deletions src/simd/simd_i64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ use super::generic::{impl_SIMDArgMinMax, impl_SIMDInit_Int};
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::generic::{SIMDArgMinMax, SIMDInit, SIMDOps};
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use crate::SCALAR;
#[cfg(target_arch = "aarch64")]
Expand All @@ -28,7 +28,7 @@ use std::arch::x86_64::*;
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::super::dtype_strategy::Int;

Expand Down
10 changes: 5 additions & 5 deletions src/simd/simd_i8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::config::SIMDInstructionSet;
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::generic::{impl_SIMDArgMinMax, impl_SIMDInit_Int, SIMDArgMinMax, SIMDInit, SIMDOps};
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use crate::SCALAR;
#[cfg(target_arch = "aarch64")]
Expand All @@ -33,15 +33,15 @@ use std::arch::x86_64::*;
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::super::dtype_strategy::Int;

#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
const MAX_INDEX: usize = i8::MAX as usize;

Expand Down
8 changes: 4 additions & 4 deletions src/simd/simd_u16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::config::SIMDInstructionSet;
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::generic::{impl_SIMDArgMinMax, impl_SIMDInit_Int, SIMDArgMinMax, SIMDInit, SIMDOps};
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use crate::SCALAR;
#[cfg(target_arch = "aarch64")]
Expand All @@ -45,7 +45,7 @@ use std::arch::x86_64::*;
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::super::dtype_strategy::Int;

Expand Down
8 changes: 4 additions & 4 deletions src/simd/simd_u32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::config::SIMDInstructionSet;
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::generic::{impl_SIMDArgMinMax, impl_SIMDInit_Int, SIMDArgMinMax, SIMDInit, SIMDOps};
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use crate::SCALAR;
#[cfg(target_arch = "aarch64")]
Expand All @@ -45,7 +45,7 @@ use std::arch::x86_64::*;
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::super::dtype_strategy::Int;

Expand Down
6 changes: 3 additions & 3 deletions src/simd/simd_u64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ use super::generic::{impl_SIMDArgMinMax, impl_SIMDInit_Int};
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::generic::{SIMDArgMinMax, SIMDInit, SIMDOps};
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use crate::SCALAR;
#[cfg(target_arch = "aarch64")]
Expand All @@ -41,7 +41,7 @@ use std::arch::x86_64::*;
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::super::dtype_strategy::Int;

Expand Down
8 changes: 4 additions & 4 deletions src/simd/simd_u8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::config::SIMDInstructionSet;
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::generic::{impl_SIMDArgMinMax, impl_SIMDInit_Int, SIMDArgMinMax, SIMDInit, SIMDOps};
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use crate::SCALAR;
#[cfg(target_arch = "aarch64")]
Expand All @@ -45,7 +45,7 @@ use std::arch::x86_64::*;
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
all(target_arch = "arm", feature = "nightly_simd"),
))]
use super::super::dtype_strategy::Int;

Expand Down

0 comments on commit d575a56

Please sign in to comment.