Fixed compat module.

This commit is contained in:
Kirill Kuzminykh
2026-01-07 15:53:19 +03:00
parent 55f6fbdee9
commit 1206c38104
+11 -2
View File
@@ -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(