diff options
Diffstat (limited to 'cpudetect.h')
-rw-r--r-- | cpudetect.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cpudetect.h b/cpudetect.h new file mode 100644 index 0000000000..0fd5ec9e72 --- /dev/null +++ b/cpudetect.h @@ -0,0 +1,21 @@ +#ifdef ARCH_X86 + +#define CPUTYPE_I386 0 +#define CPUTYPE_I486 1 +#define CPUTYPE_I586 2 + +typedef struct cpucaps_s { + int cpuType; + int hasMMX; + int hasMMX2; + int has3DNow; + int has3DNowExt; + int hasSSE; + int hasSSE2; +} CpuCaps; + +extern CpuCaps gCpuCaps; + +void GetCpuCaps( CpuCaps *caps); + +#endif /* ARCH_X86 */ |