mirror of
https://github.com/Cykooz/fast_image_resize.git
synced 2026-10-08 01:11:09 +00:00
is_aarch64_feature_detected() is used now in the CpuExtensions::is_supported() method for aarch64 architecture.
This commit is contained in:
+8
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user