mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avutil/cpu: add CPU feature detection for AArch64 CRC32 on OpenBSD
Signed-off-by: Brad Smith <brad@comstyle.com>
This commit is contained in:
@@ -103,6 +103,8 @@ static int detect_flags(void)
|
||||
if (sysctl(mib, 2, &isar0, &len, NULL, 0) != -1) {
|
||||
if (ID_AA64ISAR0_DP(isar0) >= ID_AA64ISAR0_DP_IMPL)
|
||||
flags |= AV_CPU_FLAG_DOTPROD;
|
||||
if (ID_AA64ISAR0_CRC32(isar0) >= ID_AA64ISAR0_CRC32_BASE)
|
||||
flags |= AV_CPU_FLAG_ARM_CRC;
|
||||
}
|
||||
|
||||
mib[0] = CTL_MACHDEP;
|
||||
|
||||
Reference in New Issue
Block a user