aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/aarch64
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2023-10-29 18:48:22 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2023-11-02 21:03:43 +0100
commit0ea184fc39b48096713dbdf9c9b39de3a976d6eb (patch)
treece16de1e7c54304805ca8dc9c4c3abdace402c99 /libavutil/aarch64
parenta31992634f0d3b1ab2d2a6b89440dd0120af5b97 (diff)
downloadffmpeg-0ea184fc39b48096713dbdf9c9b39de3a976d6eb.tar.gz
libavutil/aarch64/cpu.c: HWCAPS requires inline asm support.
Fixes compilation with tcc, which does not have aarch64 inline asm support.
Diffstat (limited to 'libavutil/aarch64')
-rw-r--r--libavutil/aarch64/cpu.c2
1 files changed, 1 insertions, 1 deletions
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