avutil/cpu: add CPU feature detection for AArch64 CRC32 on OpenBSD

Signed-off-by: Brad Smith <brad@comstyle.com>
This commit is contained in:
Brad Smith
2026-02-05 22:32:36 -05:00
parent 0fefecd53f
commit c352a9ab02

View File

@@ -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;