1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

Merge commit '7b0c7c9163fe3dd0081696befde28617119d2590'

* commit '7b0c7c9163fe3dd0081696befde28617119d2590':
  arm: Detect 32 bit cpu features on ARMv8 when running on a 64 bit kernel

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-06-28 21:31:14 +02:00

View File

@@ -90,8 +90,10 @@ static int get_cpuinfo(uint32_t *hwcap)
*hwcap |= HWCAP_VFP; *hwcap |= HWCAP_VFP;
if (strstr(buf, " vfpv3 ")) if (strstr(buf, " vfpv3 "))
*hwcap |= HWCAP_VFPv3; *hwcap |= HWCAP_VFPv3;
if (strstr(buf, " neon ")) if (strstr(buf, " neon ") || strstr(buf, " asimd "))
*hwcap |= HWCAP_NEON; *hwcap |= HWCAP_NEON;
if (strstr(buf, " fp ")) // Listed on 64 bit ARMv8 kernels
*hwcap |= HWCAP_VFP | HWCAP_VFPv3;
break; break;
} }
} }