Fixes compilation with tcc, which does not have aarch64 inline asm support.
Unified · Split
| @@ -31,7 +31,7 @@ static int detect_flags(void) · 30 unmodified lines | |||
| 31 | { | 31 | { |
| 32 | int flags = 0; | 32 | int flags = 0; |
| 33 | 33 | ||
| 34 | #if defined(HWCAP_CPUID) | 34 | #if defined(HWCAP_CPUID) && HAVE_INLINE_ASM |
| 35 | unsigned long hwcap = getauxval(AT_HWCAP); | 35 | unsigned long hwcap = getauxval(AT_HWCAP); |
| 36 | // We can check for DOTPROD and I8MM using HWCAP_ASIMDDP and | 36 | // We can check for DOTPROD and I8MM using HWCAP_ASIMDDP and |
| 37 | // HWCAP2_I8MM too, avoiding to read the CPUID registers (which triggers | 37 | // HWCAP2_I8MM too, avoiding to read the CPUID registers (which triggers |