| 12345678910111213141516171819202122232425262728293031 |
- --- xbmc-21.0b2-Omega.orig/xbmc/platform/linux/CPUInfoLinux.cpp 2023-12-09 22:24:46.000000000 +0100
- +++ xbmc-21.0b2-Omega/xbmc/platform/linux/CPUInfoLinux.cpp 2024-01-30 15:52:43.704683194 +0100
- @@ -19,10 +19,7 @@
- #include <sstream>
- #include <vector>
-
- -#if (defined(__arm__) && defined(HAS_NEON)) || defined(__aarch64__)
- -#include <asm/hwcap.h>
- -#include <sys/auxv.h>
- -#elif defined(__i386__) || defined(__x86_64__)
- +#if defined(__i386__) || defined(__x86_64__)
- #include <cpuid.h>
- #endif
-
- @@ -279,16 +276,6 @@ CCPUInfoLinux::CCPUInfoLinux()
-
- m_cpuModel = m_cpuModel.substr(0, m_cpuModel.find(char(0))); // remove extra null terminations
-
- -#if defined(HAS_NEON) && defined(__arm__)
- - if (getauxval(AT_HWCAP) & HWCAP_NEON)
- - m_cpuFeatures |= CPU_FEATURE_NEON;
- -#endif
- -
- -#if defined(HAS_NEON) && defined(__aarch64__)
- - if (getauxval(AT_HWCAP) & HWCAP_ASIMD)
- - m_cpuFeatures |= CPU_FEATURE_NEON;
- -#endif
- -
- // Set MMX2 when SSE is present as SSE is a superset of MMX2 and Intel doesn't set the MMX2 cap
- if (m_cpuFeatures & CPU_FEATURE_SSE)
- m_cpuFeatures |= CPU_FEATURE_MMX2;
|