Comment out "else" statement without following block.
[mplayer/glamo.git] / cpudetect.h
blob2cc99d47ebdb871bc39e673ff8f28d9f11b979a9
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 #if ARCH_X86_64
12 # define REGa rax
13 # define REGb rbx
14 # define REGBP rbp
15 # define REGSP rsp
16 # define REG_a "rax"
17 # define REG_b "rbx"
18 # define REG_c "rcx"
19 # define REG_d "rdx"
20 # define REG_S "rsi"
21 # define REG_D "rdi"
22 # define REG_SP "rsp"
23 # define REG_BP "rbp"
24 #else
25 # define REGa eax
26 # define REGb ebx
27 # define REGBP ebp
28 # define REGSP esp
29 # define REG_a "eax"
30 # define REG_b "ebx"
31 # define REG_c "ecx"
32 # define REG_d "edx"
33 # define REG_S "esi"
34 # define REG_D "edi"
35 # define REG_SP "esp"
36 # define REG_BP "ebp"
37 #endif
39 typedef struct cpucaps_s {
40 int cpuType;
41 int cpuModel;
42 int cpuStepping;
43 int hasMMX;
44 int hasMMX2;
45 int has3DNow;
46 int has3DNowExt;
47 int hasSSE;
48 int hasSSE2;
49 int hasSSSE3;
50 int hasSSE4a;
51 int isX86;
52 unsigned cl_size; /* size of cache line */
53 int hasAltiVec;
54 int hasTSC;
55 } CpuCaps;
57 extern CpuCaps gCpuCaps;
59 void GetCpuCaps(CpuCaps *caps);
61 /* returned value is malloc()'ed so free() it after use */
62 char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]);
64 #endif /* MPLAYER_CPUDETECT_H */