19 #ifndef AVUTIL_X86_CPU_H
20 #define AVUTIL_X86_CPU_H
26 #define AV_CPU_FLAG_AMD3DNOW AV_CPU_FLAG_3DNOW
27 #define AV_CPU_FLAG_AMD3DNOWEXT AV_CPU_FLAG_3DNOWEXT
29 #define X86_AMD3DNOW(flags) CPUEXT(flags, AMD3DNOW)
30 #define X86_AMD3DNOWEXT(flags) CPUEXT(flags, AMD3DNOWEXT)
31 #define X86_MMX(flags) CPUEXT(flags, MMX)
32 #define X86_MMXEXT(flags) CPUEXT(flags, MMXEXT)
33 #define X86_SSE(flags) CPUEXT(flags, SSE)
34 #define X86_SSE2(flags) CPUEXT(flags, SSE2)
35 #define X86_SSE2_FAST(flags) CPUEXT_FAST(flags, SSE2)
36 #define X86_SSE2_SLOW(flags) CPUEXT_SLOW(flags, SSE2)
37 #define X86_SSE3(flags) CPUEXT(flags, SSE3)
38 #define X86_SSE3_FAST(flags) CPUEXT_FAST(flags, SSE3)
39 #define X86_SSE3_SLOW(flags) CPUEXT_SLOW(flags, SSE3)
40 #define X86_SSSE3(flags) CPUEXT(flags, SSSE3)
41 #define X86_SSE4(flags) CPUEXT(flags, SSE4)
42 #define X86_SSE42(flags) CPUEXT(flags, SSE42)
43 #define X86_AVX(flags) CPUEXT(flags, AVX)
44 #define X86_AVX_FAST(flags) CPUEXT_FAST(flags, AVX)
45 #define X86_AVX_SLOW(flags) CPUEXT_SLOW(flags, AVX)
46 #define X86_XOP(flags) CPUEXT(flags, XOP)
47 #define X86_FMA3(flags) CPUEXT(flags, FMA3)
48 #define X86_FMA4(flags) CPUEXT(flags, FMA4)
49 #define X86_AVX2(flags) CPUEXT(flags, AVX2)
51 #define EXTERNAL_AMD3DNOW(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, AMD3DNOW)
52 #define EXTERNAL_AMD3DNOWEXT(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, AMD3DNOWEXT)
53 #define EXTERNAL_MMX(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, MMX)
54 #define EXTERNAL_MMXEXT(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, MMXEXT)
55 #define EXTERNAL_SSE(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, SSE)
56 #define EXTERNAL_SSE2(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, SSE2)
57 #define EXTERNAL_SSE2_FAST(flags) CPUEXT_SUFFIX_FAST(flags, _EXTERNAL, SSE2)
58 #define EXTERNAL_SSE2_SLOW(flags) CPUEXT_SUFFIX_SLOW(flags, _EXTERNAL, SSE2)
59 #define EXTERNAL_SSE3(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, SSE3)
60 #define EXTERNAL_SSE3_FAST(flags) CPUEXT_SUFFIX_FAST(flags, _EXTERNAL, SSE3)
61 #define EXTERNAL_SSE3_SLOW(flags) CPUEXT_SUFFIX_SLOW(flags, _EXTERNAL, SSE3)
62 #define EXTERNAL_SSSE3(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, SSSE3)
63 #define EXTERNAL_SSE4(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, SSE4)
64 #define EXTERNAL_SSE42(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, SSE42)
65 #define EXTERNAL_AVX(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, AVX)
66 #define EXTERNAL_AVX_FAST(flags) CPUEXT_SUFFIX_FAST(flags, _EXTERNAL, AVX)
67 #define EXTERNAL_AVX_SLOW(flags) CPUEXT_SUFFIX_SLOW(flags, _EXTERNAL, AVX)
68 #define EXTERNAL_XOP(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, XOP)
69 #define EXTERNAL_FMA3(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, FMA3)
70 #define EXTERNAL_FMA4(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, FMA4)
71 #define EXTERNAL_AVX2(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, AVX2)
73 #define INLINE_AMD3DNOW(flags) CPUEXT_SUFFIX(flags, _INLINE, AMD3DNOW)
74 #define INLINE_AMD3DNOWEXT(flags) CPUEXT_SUFFIX(flags, _INLINE, AMD3DNOWEXT)
75 #define INLINE_MMX(flags) CPUEXT_SUFFIX(flags, _INLINE, MMX)
76 #define INLINE_MMXEXT(flags) CPUEXT_SUFFIX(flags, _INLINE, MMXEXT)
77 #define INLINE_SSE(flags) CPUEXT_SUFFIX(flags, _INLINE, SSE)
78 #define INLINE_SSE2(flags) CPUEXT_SUFFIX(flags, _INLINE, SSE2)
79 #define INLINE_SSE2_FAST(flags) CPUEXT_SUFFIX_FAST(flags, _INLINE, SSE2)
80 #define INLINE_SSE2_SLOW(flags) CPUEXT_SUFFIX_SLOW(flags, _INLINE, SSE2)
81 #define INLINE_SSE3(flags) CPUEXT_SUFFIX(flags, _INLINE, SSE3)
82 #define INLINE_SSE3_FAST(flags) CPUEXT_SUFFIX_FAST(flags, _INLINE, SSE3)
83 #define INLINE_SSE3_SLOW(flags) CPUEXT_SUFFIX_SLOW(flags, _INLINE, SSE3)
84 #define INLINE_SSSE3(flags) CPUEXT_SUFFIX(flags, _INLINE, SSSE3)
85 #define INLINE_SSE4(flags) CPUEXT_SUFFIX(flags, _INLINE, SSE4)
86 #define INLINE_SSE42(flags) CPUEXT_SUFFIX(flags, _INLINE, SSE42)
87 #define INLINE_AVX(flags) CPUEXT_SUFFIX(flags, _INLINE, AVX)
88 #define INLINE_AVX_FAST(flags) CPUEXT_SUFFIX_FAST(flags, _INLINE, AVX)
89 #define INLINE_AVX_SLOW(flags) CPUEXT_SUFFIX_SLOW(flags, _INLINE, AVX)
90 #define INLINE_XOP(flags) CPUEXT_SUFFIX(flags, _INLINE, XOP)
91 #define INLINE_FMA3(flags) CPUEXT_SUFFIX(flags, _INLINE, FMA3)
92 #define INLINE_FMA4(flags) CPUEXT_SUFFIX(flags, _INLINE, FMA4)
93 #define INLINE_AVX2(flags) CPUEXT_SUFFIX(flags, _INLINE, AVX2)
void ff_cpu_cpuid(int index, int *eax, int *ebx, int *ecx, int *edx)
static int op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.
void ff_cpu_xgetbv(int op, int *eax, int *edx)
int ff_cpu_cpuid_test(void)