is_aarch64_feature_detected() is used now in the CpuExtensions::is_supported() method for aarch64 architecture.

This commit is contained in:
Kirill Kuzminykh
2024-10-19 23:53:56 +03:00
parent fdfd8fda43
commit eaa54c5e87
2 changed files with 10 additions and 4 deletions
+8 -1
View File
@@ -1,3 +1,10 @@
## [Unreleased] - ReleaseDate
### Fixed
- `is_aarch64_feature_detected()` is used now in
the `CpuExtensions::is_supported()` method for `aarch64` architecture.
## [5.0.0] - 2024-10-03
### Added
@@ -13,7 +20,7 @@
These methods have default implementation and are used for multi-thread
image processing.
## Changed
### Changed
- **BREAKING**: Added supertraits `Send`, `Sync` and `Sized` to the `ImageView` trait.
- Optimized convolution algorythm by deleting zero coefficients from start and
+2 -3
View File
@@ -27,7 +27,7 @@ impl CpuExtensions {
#[cfg(target_arch = "x86_64")]
Self::Sse4_1 => is_x86_feature_detected!("sse4.1"),
#[cfg(target_arch = "aarch64")]
Self::Neon => true,
Self::Neon => std::arch::is_aarch64_feature_detected!("neon"),
#[cfg(target_arch = "wasm32")]
Self::Simd128 => true,
Self::None => true,
@@ -49,8 +49,7 @@ impl Default for CpuExtensions {
#[cfg(target_arch = "aarch64")]
fn default() -> Self {
use std::arch::is_aarch64_feature_detected;
if is_aarch64_feature_detected!("neon") {
if std::arch::is_aarch64_feature_detected!("neon") {
Self::Neon
} else {
Self::None