summaryrefslogtreecommitdiffstats
path: root/cpudetect.h
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-19 00:40:19 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-19 00:40:19 +0000
commit7564f37de249c8d29b254c83a4ff3f4c47ae8057 (patch)
treee0e68cb1c1c212aa09cc22251ffdb835e3f8975d /cpudetect.h
parentff3a0010904e91558a0f37aa159dbf069d77d43f (diff)
downloadmpv-7564f37de249c8d29b254c83a4ff3f4c47ae8057.tar.bz2
mpv-7564f37de249c8d29b254c83a4ff3f4c47ae8057.tar.xz
cpu detect code by Eric Anholt <eanholt@gladstone.uoregon.edu>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2269 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cpudetect.h')
-rw-r--r--cpudetect.h21
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 */