Mercurial > mplayer.hg
diff cpudetect.h @ 2268:72ff2179d396
cpu detect code by Eric Anholt <eanholt@gladstone.uoregon.edu>
author | arpi |
---|---|
date | Fri, 19 Oct 2001 00:40:19 +0000 |
parents | |
children | b318387bfeda |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cpudetect.h Fri Oct 19 00:40:19 2001 +0000 @@ -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 */