mirror of
https://github.com/Cykooz/fast_image_resize.git
synced 2026-10-09 01:41:09 +00:00
Fixed compat module.
This commit is contained in:
+11
-2
@@ -51,11 +51,20 @@ impl Default for CpuExtensions {
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
fn default() -> Self {
|
||||
has_neon()
|
||||
if has_neon() {
|
||||
Self::Neon
|
||||
} else {
|
||||
Self::None
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
fn default() -> Self {
|
||||
has_simd128()
|
||||
if has_simd128() {
|
||||
Self::Simd128
|
||||
} else {
|
||||
Self::None
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(any(
|
||||
|
||||
Reference in New Issue
Block a user