0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-06 03:46:41 +00:00
termux-packages/packages/libaom/arm_cpudetect-always-neon.patch
2024-05-31 16:01:41 +02:00

27 lines
977 B
Diff

diff --git a/aom_ports/aarch32_cpudetect.c b/aom_ports/aarch32_cpudetect.c
index 809bae5920..9f44573118 100644
--- a/aom_ports/aarch32_cpudetect.c
+++ b/aom_ports/aarch32_cpudetect.c
@@ -49,8 +49,7 @@ static int arm_get_cpu_caps(void) {
static int arm_get_cpu_caps(void) {
int flags = 0;
#if HAVE_NEON
- uint64_t features = android_getCpuFeatures();
- if (features & ANDROID_CPU_ARM_FEATURE_NEON) flags |= HAS_NEON;
+ flags |= HAS_NEON;
#endif // HAVE_NEON
return flags;
}
diff --git a/aom_ports/arm_cpudetect.h b/aom_ports/arm_cpudetect.h
index 2b63942424..6c15e83326 100644
--- a/aom_ports/arm_cpudetect.h
+++ b/aom_ports/arm_cpudetect.h
@@ -36,7 +36,6 @@
// Use getauxval() when targeting (64-bit) Android with API level >= 18.
// getauxval() is supported since Android API level 18 (Android 4.3.)
// First Android version with 64-bit support was Android 5.x (API level 21).
-#include <cpu-features.h>
#endif
static bool arm_cpu_env_flags(int *flags) {