* [FFmpeg-devel] [PR] avutil/cpu: add CPU feature detection for AArch64 CRC32 on OpenBSD (PR #21657)
@ 2026-02-06 3:35 brad via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: brad via ffmpeg-devel @ 2026-02-06 3:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: brad
PR #21657 opened by brad
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21657
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21657.patch
>From a069379ff2c3f77b423bc3644cfe58a6b13c3a0f Mon Sep 17 00:00:00 2001
From: Brad Smith <brad@comstyle.com>
Date: Thu, 5 Feb 2026 22:32:36 -0500
Subject: [PATCH] avutil/cpu: add CPU feature detection for AArch64 CRC32 on
OpenBSD
---
libavutil/aarch64/cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavutil/aarch64/cpu.c b/libavutil/aarch64/cpu.c
index 6733b62123..ab297595d6 100644
--- a/libavutil/aarch64/cpu.c
+++ b/libavutil/aarch64/cpu.c
@@ -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;
--
2.52.0
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-06 3:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-06 3:35 [FFmpeg-devel] [PR] avutil/cpu: add CPU feature detection for AArch64 CRC32 on OpenBSD (PR #21657) brad via ffmpeg-devel
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git