Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.1KB

  1. diff --git a/src/libFLAC/cpu.c b/src/libFLAC/cpu.c
  2. index 64da9cb..6b1ca7c 100644
  3. --- a/src/libFLAC/cpu.c
  4. +++ b/src/libFLAC/cpu.c
  5. @@ -57,7 +57,7 @@
  6. #include <sys/auxv.h>
  7. #endif
  8. -#if (defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64) && (defined FLAC__HAS_NASM || FLAC__HAS_X86INTRIN) && !defined FLAC__NO_ASM
  9. +#if (defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64) && (defined FLAC__HAS_NASM || FLAC__HAS_X86INTRIN) && !defined FLAC__NO_ASM && !defined(__aarch64__)
  10. /* these are flags in EDX of CPUID AX=00000001 */
  11. static const uint32_t FLAC__CPUINFO_X86_CPUID_CMOV = 0x00008000;
  12. @@ -163,7 +163,7 @@ cpuinfo_x86(FLAC__uint32 level, FLAC__uint32 *eax, FLAC__uint32 *ebx, FLAC__uint
  13. static void
  14. x86_cpu_info (FLAC__CPUInfo *info)
  15. {
  16. -#if (defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64) && (defined FLAC__HAS_NASM || FLAC__HAS_X86INTRIN) && !defined FLAC__NO_ASM
  17. +#if (defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64) && (defined FLAC__HAS_NASM || FLAC__HAS_X86INTRIN) && !defined FLAC__NO_ASM && !defined(__aarch64__)
  18. FLAC__bool x86_osxsave = false;
  19. FLAC__bool os_avx = false;
  20. FLAC__uint32 flags_eax, flags_ebx, flags_ecx, flags_edx;