summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-09-11 13:35:46 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2016-09-11 13:54:15 +1000
commitd1c15b4fc1212bb33d1e5e58b8a9ed7672002dcf (patch)
tree8c3eead2ce60827896480a0b0ef0f7384b678dbd
parent23f6a35996ddcc33b6cdbe2fdd563f15c214b1a9 (diff)
downloadflac-d1c15b4fc1212bb33d1e5e58b8a9ed7672002dcf.tar.gz
cpu.c: Fix compiler warning on PowerPC
-rw-r--r--src/libFLAC/cpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libFLAC/cpu.c b/src/libFLAC/cpu.c
index 33e4bd27..db68b8d1 100644
--- a/src/libFLAC/cpu.c
+++ b/src/libFLAC/cpu.c
@@ -73,8 +73,8 @@
#endif
-/* these are flags in EDX of CPUID AX=00000001 */
#if defined FLAC__CPU_IA32
+/* these are flags in EDX of CPUID AX=00000001 */
static const unsigned FLAC__CPUINFO_IA32_CPUID_CMOV = 0x00008000;
static const unsigned FLAC__CPUINFO_IA32_CPUID_MMX = 0x00800000;
static const unsigned FLAC__CPUINFO_IA32_CPUID_FXSR = 0x01000000;
@@ -82,6 +82,7 @@ static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE = 0x02000000;
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE2 = 0x04000000;
#endif
+#if FLAC__HAS_X86INTRIN && FLAC__AVX_SUPPORTED
/* these are flags in ECX of CPUID AX=00000001 */
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE3 = 0x00000001;
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSSE3 = 0x00000200;
@@ -94,6 +95,7 @@ static const unsigned FLAC__CPUINFO_IA32_CPUID_AVX = 0x10000000;
static const unsigned FLAC__CPUINFO_IA32_CPUID_FMA = 0x00001000;
/* these are flags in EBX of CPUID AX=00000007 */
static const unsigned FLAC__CPUINFO_IA32_CPUID_AVX2 = 0x00000020;
+#endif
/*
* Extra stuff needed for detection of OS support for SSE on IA-32