Go to the documentation of this file.
19 #ifndef AVUTIL_X86_CPU_H
20 #define AVUTIL_X86_CPU_H
25 #define CPUEXT(flags, suffix, cpuext) \
26 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
28 #define AV_CPU_FLAG_AMD3DNOW AV_CPU_FLAG_3DNOW
29 #define AV_CPU_FLAG_AMD3DNOWEXT AV_CPU_FLAG_3DNOWEXT
31 #define EXTERNAL_AMD3DNOW(flags) CPUEXT(flags, _EXTERNAL, AMD3DNOW)
32 #define EXTERNAL_AMD3DNOWEXT(flags) CPUEXT(flags, _EXTERNAL, AMD3DNOWEXT)
33 #define EXTERNAL_MMX(flags) CPUEXT(flags, _EXTERNAL, MMX)
34 #define EXTERNAL_MMXEXT(flags) CPUEXT(flags, _EXTERNAL, MMXEXT)
35 #define EXTERNAL_SSE(flags) CPUEXT(flags, _EXTERNAL, SSE)
36 #define EXTERNAL_SSE2(flags) CPUEXT(flags, _EXTERNAL, SSE2)
37 #define EXTERNAL_SSE3(flags) CPUEXT(flags, _EXTERNAL, SSE3)
38 #define EXTERNAL_SSSE3(flags) CPUEXT(flags, _EXTERNAL, SSSE3)
39 #define EXTERNAL_SSE4(flags) CPUEXT(flags, _EXTERNAL, SSE4)
40 #define EXTERNAL_SSE42(flags) CPUEXT(flags, _EXTERNAL, SSE42)
41 #define EXTERNAL_AVX(flags) CPUEXT(flags, _EXTERNAL, AVX)
42 #define EXTERNAL_FMA4(flags) CPUEXT(flags, _EXTERNAL, FMA4)
44 #define INLINE_AMD3DNOW(flags) CPUEXT(flags, _INLINE, AMD3DNOW)
45 #define INLINE_AMD3DNOWEXT(flags) CPUEXT(flags, _INLINE, AMD3DNOWEXT)
46 #define INLINE_MMX(flags) CPUEXT(flags, _INLINE, MMX)
47 #define INLINE_MMXEXT(flags) CPUEXT(flags, _INLINE, MMXEXT)
48 #define INLINE_SSE(flags) CPUEXT(flags, _INLINE, SSE)
49 #define INLINE_SSE2(flags) CPUEXT(flags, _INLINE, SSE2)
50 #define INLINE_SSE3(flags) CPUEXT(flags, _INLINE, SSE3)
51 #define INLINE_SSSE3(flags) CPUEXT(flags, _INLINE, SSSE3)
52 #define INLINE_SSE4(flags) CPUEXT(flags, _INLINE, SSE4)
53 #define INLINE_SSE42(flags) CPUEXT(flags, _INLINE, SSE42)
54 #define INLINE_AVX(flags) CPUEXT(flags, _INLINE, AVX)
55 #define INLINE_FMA4(flags) CPUEXT(flags, _INLINE, FMA4)