| 1 | #ifndef CPUDETECT_H |
| 2 | #define CPUDETECT_H |
| 3 | |
| 4 | #define CPUTYPE_I386 3 |
| 5 | #define CPUTYPE_I486 4 |
| 6 | #define CPUTYPE_I586 5 |
| 7 | #define CPUTYPE_I686 6 |
| 8 | |
| 9 | typedef struct cpu_caps_s { |
| 10 | int cpu_type; |
| 11 | int cpu_stepping; |
| 12 | int has_MMX; |
| 13 | int has_MMX2; |
| 14 | int has_3DNow; |
| 15 | int has_3DNowExt; |
| 16 | int has_SSE; |
| 17 | int has_SSE2; |
| 18 | int is_x86; |
| 19 | } cpu_caps_t; |
| 20 | |
| 21 | void mmxnow_get_cpu_caps(cpu_caps_t *caps); |
| 22 | |
| 23 | /* returned value is malloc()'ed so free() it after use */ |
| 24 | char *mmxnow_get_cpu_name(unsigned int regs[], unsigned int regs2[]); |
| 25 | |
| 26 | #endif /* !CPUDETECT_H */ |
| 27 |