build/vdpau: drop support for dynamic loading of libvdpau
[mplayer/glamo.git] / cpudetect.h
blobc80dddde11425306556027adbb00cade81c0a032
1 #ifndef MPLAYER_CPUDETECT_H
2 #define MPLAYER_CPUDETECT_H
4 #include "config.h"
6 #define CPUTYPE_I386 3
7 #define CPUTYPE_I486 4
8 #define CPUTYPE_I586 5
9 #define CPUTYPE_I686 6
11 #include "ffmpeg_files/x86_cpu.h"
13 typedef struct cpucaps_s {
14 int cpuType;
15 int cpuModel;
16 int cpuStepping;
17 int hasMMX;
18 int hasMMX2;
19 int has3DNow;
20 int has3DNowExt;
21 int hasSSE;
22 int hasSSE2;
23 int hasSSE3;
24 int hasSSSE3;
25 int hasSSE4a;
26 int isX86;
27 unsigned cl_size; /* size of cache line */
28 int hasAltiVec;
29 int hasTSC;
30 } CpuCaps;
32 extern CpuCaps gCpuCaps;
34 void GetCpuCaps(CpuCaps *caps);
36 /* returned value is malloc()'ed so free() it after use */
37 char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]);
39 #endif /* MPLAYER_CPUDETECT_H */