mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02: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:
parent
a31992634f
commit
0ea184fc39
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user