[FFmpeg-cvslog] libavutil/aarch64/cpu.c: HWCAPS requires inline asm support.

Reimar Döffinger git at videolan.org
Thu Nov 2 22:11:14 EET 2023


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sun Oct 29 18:48:22 2023 +0100| [0ea184fc39b48096713dbdf9c9b39de3a976d6eb] | committer: Reimar Döffinger

libavutil/aarch64/cpu.c: HWCAPS requires inline asm support.

Fixes compilation with tcc, which does not have aarch64
inline asm support.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ea184fc39b48096713dbdf9c9b39de3a976d6eb
---

 libavutil/aarch64/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/aarch64/cpu.c b/libavutil/aarch64/cpu.c
index 2b50c426bc..f27fef3992 100644
--- a/libavutil/aarch64/cpu.c
+++ b/libavutil/aarch64/cpu.c
@@ -31,7 +31,7 @@ static int detect_flags(void)
 {
     int flags = 0;
 
-#if defined(HWCAP_CPUID)
+#if defined(HWCAP_CPUID) && HAVE_INLINE_ASM
     unsigned long hwcap = getauxval(AT_HWCAP);
     // We can check for DOTPROD and I8MM using HWCAP_ASIMDDP and
     // HWCAP2_I8MM too, avoiding to read the CPUID registers (which triggers



More information about the ffmpeg-cvslog mailing list