printf -> mp_msg
[mplayer/glamo.git] / cpudetect.h
blobc178eb7b3936baa900d3886a5b2f045d94f7c4b3
1 #ifndef CPUDETECT_H
2 #define CPUDETECT_H
4 #define CPUTYPE_I386 3
5 #define CPUTYPE_I486 4
6 #define CPUTYPE_I586 5
7 #define CPUTYPE_I686 6
9 typedef struct cpucaps_s {
10 int cpuType;
11 int cpuStepping;
12 int hasMMX;
13 int hasMMX2;
14 int has3DNow;
15 int has3DNowExt;
16 int hasSSE;
17 int hasSSE2;
18 int isX86;
19 unsigned cl_size; /* size of cache line */
20 int hasAltiVec;
21 int hasTSC;
22 } CpuCaps;
24 extern CpuCaps gCpuCaps;
26 void GetCpuCaps(CpuCaps *caps);
28 /* returned value is malloc()'ed so free() it after use */
29 char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]);
31 #endif /* !CPUDETECT_H */