Restrict Arm types to Arm v7+
This mostly mirrors the restrictions in std::arch. It can be loosened slightly with later refactoring.
This commit is contained in:
parent
7d91357875
commit
6ddf7ad8e1
2 changed files with 6 additions and 3 deletions
|
@ -21,7 +21,10 @@ mod x86;
|
||||||
#[cfg(any(target_arch = "wasm32"))]
|
#[cfg(any(target_arch = "wasm32"))]
|
||||||
mod wasm32;
|
mod wasm32;
|
||||||
|
|
||||||
#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
|
#[cfg(any(
|
||||||
|
target_arch = "aarch64",
|
||||||
|
all(target_arch = "arm", target_feature = "v7")
|
||||||
|
))]
|
||||||
mod arm;
|
mod arm;
|
||||||
|
|
||||||
#[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]
|
#[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]
|
||||||
|
|
4
crates/core_simd/src/vendor/arm.rs
vendored
4
crates/core_simd/src/vendor/arm.rs
vendored
|
@ -1,6 +1,6 @@
|
||||||
use crate::simd::*;
|
use crate::simd::*;
|
||||||
|
|
||||||
#[cfg(target_arch = "arm")]
|
#[cfg(all(target_arch = "arm", target_feature = "v7"))]
|
||||||
use core::arch::arm::*;
|
use core::arch::arm::*;
|
||||||
|
|
||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
|
@ -35,7 +35,7 @@ from_transmute! { unsafe i64x2 => int64x2_t }
|
||||||
from_transmute! { unsafe Simd<u64, 1> => poly64x1_t }
|
from_transmute! { unsafe Simd<u64, 1> => poly64x1_t }
|
||||||
from_transmute! { unsafe u64x2 => poly64x2_t }
|
from_transmute! { unsafe u64x2 => poly64x2_t }
|
||||||
|
|
||||||
#[cfg(target_arch = "arm")]
|
#[cfg(all(target_arch = "arm", target_feature = "v7"))]
|
||||||
mod arm {
|
mod arm {
|
||||||
use super::*;
|
use super::*;
|
||||||
from_transmute! { unsafe Simd<u8, 4> => uint8x4_t }
|
from_transmute! { unsafe Simd<u8, 4> => uint8x4_t }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue