#ifndef FLAC__PRIVATE__CPU_H
#define FLAC__PRIVATE__CPU_H
#include "FLAC/ordinals.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef FLAC__CPU_X86_64
#if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || \
defined(__x86_64) || defined(_M_X64) || defined(_M_AMD64)
#define FLAC__CPU_X86_64
#endif
#endif
#ifndef FLAC__CPU_IA32
#if defined(__i386__) || defined(__i486__) || defined(__i586__) || \
defined(__i686__) || defined(__i386) || defined(_M_IX86)
#define FLAC__CPU_IA32
#endif
#endif
#ifndef __has_attribute
#define __has_attribute …
#endif
#if FLAC__HAS_X86INTRIN
#if defined __INTEL_COMPILER
#define FLAC__SSE_TARGET …
#define FLAC__SSE_SUPPORTED …
#define FLAC__SSE2_SUPPORTED …
#if (__INTEL_COMPILER >= 1000)
#define FLAC__SSSE3_SUPPORTED …
#define FLAC__SSE4_1_SUPPORTED …
#endif
#ifdef FLAC__USE_AVX
#if (__INTEL_COMPILER >= 1110)
#define FLAC__AVX_SUPPORTED …
#endif
#if (__INTEL_COMPILER >= 1300)
#define FLAC__AVX2_SUPPORTED …
#define FLAC__FMA_SUPPORTED …
#endif
#endif
#elif defined __clang__ && __has_attribute(__target__)
#define FLAC__SSE_TARGET …
#define FLAC__SSE_SUPPORTED …
#define FLAC__SSE2_SUPPORTED …
#define FLAC__SSSE3_SUPPORTED …
#define FLAC__SSE4_1_SUPPORTED …
#ifdef FLAC__USE_AVX
#define FLAC__AVX_SUPPORTED …
#define FLAC__AVX2_SUPPORTED …
#define FLAC__FMA_SUPPORTED …
#endif
#elif defined __GNUC__ && !defined __clang__ && \
(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9))
#define FLAC__SSE_TARGET …
#define FLAC__SSE_SUPPORTED …
#define FLAC__SSE2_SUPPORTED …
#define FLAC__SSSE3_SUPPORTED …
#define FLAC__SSE4_1_SUPPORTED …
#ifdef FLAC__USE_AVX
#define FLAC__AVX_SUPPORTED …
#define FLAC__AVX2_SUPPORTED …
#define FLAC__FMA_SUPPORTED …
#endif
#elif defined _MSC_VER
#define FLAC__SSE_TARGET …
#define FLAC__SSE_SUPPORTED …
#define FLAC__SSE2_SUPPORTED …
#if (_MSC_VER >= 1500)
#define FLAC__SSSE3_SUPPORTED …
#define FLAC__SSE4_1_SUPPORTED …
#endif
#ifdef FLAC__USE_AVX
#if (_MSC_FULL_VER >= 160040219)
#define FLAC__AVX_SUPPORTED …
#endif
#if (_MSC_VER >= 1700)
#define FLAC__AVX2_SUPPORTED …
#define FLAC__FMA_SUPPORTED …
#endif
#endif
#else
#define FLAC__SSE_TARGET …
#ifdef __SSE__
#define FLAC__SSE_SUPPORTED …
#endif
#ifdef __SSE2__
#define FLAC__SSE2_SUPPORTED …
#endif
#ifdef __SSSE3__
#define FLAC__SSSE3_SUPPORTED …
#endif
#ifdef __SSE4_1__
#define FLAC__SSE4_1_SUPPORTED …
#endif
#ifdef FLAC__USE_AVX
#ifdef __AVX__
#define FLAC__AVX_SUPPORTED …
#endif
#ifdef __AVX2__
#define FLAC__AVX2_SUPPORTED …
#endif
#ifdef __FMA__
#define FLAC__FMA_SUPPORTED …
#endif
#endif
#endif
#endif
#ifndef FLAC__AVX_SUPPORTED
#define FLAC__AVX_SUPPORTED …
#endif
FLAC__CPUInfo_Type;
FLAC__CPUInfo_x86;
FLAC__CPUInfo_ppc;
FLAC__CPUInfo;
void FLAC__cpu_info(FLAC__CPUInfo *info);
FLAC__uint32 FLAC__cpu_have_cpuid_asm_ia32(void);
void FLAC__cpu_info_asm_ia32(FLAC__uint32 level,
FLAC__uint32* eax,
FLAC__uint32* ebx,
FLAC__uint32* ecx,
FLAC__uint32* edx);
#endif