33 #ifndef FLAC__PRIVATE__CPU_H 34 #define FLAC__PRIVATE__CPU_H 36 #include "../FLAC/ordinals.h" 42 #ifndef FLAC__CPU_X86_64 44 #if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64) || defined(_M_X64) || defined(_M_AMD64) 45 #define FLAC__CPU_X86_64 50 #ifndef FLAC__CPU_IA32 52 #if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) ||defined( __i386) || defined(_M_IX86) 53 #define FLAC__CPU_IA32 59 #if FLAC__HAS_X86INTRIN 61 #if defined __INTEL_COMPILER 62 #define FLAC__SSE_TARGET(x) 63 #define FLAC__SSE_SUPPORTED 1 64 #define FLAC__SSE2_SUPPORTED 1 65 #if (__INTEL_COMPILER >= 1000) 66 #define FLAC__SSSE3_SUPPORTED 1 67 #define FLAC__SSE4_1_SUPPORTED 1 69 #if (__INTEL_COMPILER >= 1110) 70 #define FLAC__AVX_SUPPORTED 1 72 #if (__INTEL_COMPILER >= 1300) 73 #define FLAC__AVX2_SUPPORTED 1 74 #define FLAC__FMA_SUPPORTED 1 76 #elif defined _MSC_VER 77 #define FLAC__SSE_TARGET(x) 78 #define FLAC__SSE_SUPPORTED 1 79 #define FLAC__SSE2_SUPPORTED 1 80 #if (_MSC_VER >= 1500) 81 #define FLAC__SSSE3_SUPPORTED 1 82 #define FLAC__SSE4_1_SUPPORTED 1 84 #if (_MSC_FULL_VER >= 160040219) 85 #define FLAC__AVX_SUPPORTED 1 87 #if (_MSC_VER >= 1700) 88 #define FLAC__AVX2_SUPPORTED 1 89 #define FLAC__FMA_SUPPORTED 1 91 #elif defined __GNUC__ 92 #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) 93 #define FLAC__SSE_TARGET(x) __attribute__ ((__target__ (x))) 94 #define FLAC__SSE_SUPPORTED 1 95 #define FLAC__SSE2_SUPPORTED 1 96 #define FLAC__SSSE3_SUPPORTED 1 97 #define FLAC__SSE4_1_SUPPORTED 1 99 #define FLAC__AVX_SUPPORTED 1 100 #define FLAC__AVX2_SUPPORTED 1 101 #define FLAC__FMA_SUPPORTED 1 104 #define FLAC__SSE_TARGET(x) 106 #define FLAC__SSE_SUPPORTED 1 109 #define FLAC__SSE2_SUPPORTED 1 112 #define FLAC__SSSE3_SUPPORTED 1 115 #define FLAC__SSE4_1_SUPPORTED 1 118 #define FLAC__AVX_SUPPORTED 1 121 #define FLAC__AVX2_SUPPORTED 1 124 #define FLAC__FMA_SUPPORTED 1 131 #ifndef FLAC__AVX_SUPPORTED 132 #define FLAC__AVX_SUPPORTED 0
FLAC__bool avx
Definition: cpu.h:153
FLAC__bool sse
Definition: cpu.h:146
void FLAC__cpu_info_x86(FLAC__uint32 level, FLAC__uint32 *eax, FLAC__uint32 *ebx, FLAC__uint32 *ecx, FLAC__uint32 *edx)
FLAC__bool fma
Definition: cpu.h:155
FLAC__bool sse3
Definition: cpu.h:161
FLAC__CPUInfo_Type
Definition: cpu.h:135
Configuration options (set of defines)
FLAC__bool intel
Definition: cpu.h:159
FLAC__bool ssse3
Definition: cpu.h:162
Definition: libretro.h:2275
uint32_t FLAC__uint32
Definition: ordinals.h:65
FLAC__CPUInfo_Type type
Definition: cpu.h:173
FLAC__bool cmov
Definition: cpu.h:144
FLAC__bool mmx
Definition: cpu.h:145
FLAC__uint32 FLAC__cpu_have_cpuid_asm_ia32(void)
FLAC__bool use_asm
Definition: cpu.h:172
FLAC__bool avx
Definition: cpu.h:165
FLAC__bool sse41
Definition: cpu.h:163
FLAC__bool sse42
Definition: cpu.h:152
FLAC__bool sse41
Definition: cpu.h:151
FLAC__bool fma
Definition: cpu.h:167
GLint level
Definition: glext.h:6293
FLAC__bool sse42
Definition: cpu.h:164
void FLAC__cpu_info_asm_ia32(FLAC__uint32 *flags_edx, FLAC__uint32 *flags_ecx)
FLAC__CPUInfo_x86 x86
Definition: cpu.h:175
int FLAC__bool
Definition: ordinals.h:70
FLAC__bool ssse3
Definition: cpu.h:150
FLAC__bool avx2
Definition: cpu.h:166
FLAC__CPUInfo_IA32 ia32
Definition: cpu.h:174
FLAC__bool sse3
Definition: cpu.h:149
FLAC__bool avx2
Definition: cpu.h:154
FLAC__bool intel
Definition: cpu.h:142
void FLAC__cpu_info(FLAC__CPUInfo *info)
Definition: cpu.c:235
FLAC__bool sse2
Definition: cpu.h:147