mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
libavutil/aarch64/cpu.c: HWCAPS requires inline asm support.
Fixes compilation with tcc, which does not have aarch64 inline asm support.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user