aboutsummaryrefslogtreecommitdiff
path: root/Src/vp32/include/CPUIdLib.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/vp32/include/CPUIdLib.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/vp32/include/CPUIdLib.h')
-rw-r--r--Src/vp32/include/CPUIdLib.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/Src/vp32/include/CPUIdLib.h b/Src/vp32/include/CPUIdLib.h
new file mode 100644
index 00000000..550e467e
--- /dev/null
+++ b/Src/vp32/include/CPUIdLib.h
@@ -0,0 +1,59 @@
+//==========================================================================
+//
+// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
+// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
+// PURPOSE.
+//
+// Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
+//
+//--------------------------------------------------------------------------
+
+
+
+#ifndef _CPUIDLIB_H
+#define _CPUIDLIB_H
+
+typedef enum PROCTYPE {
+ X86 = 0, /* 486, Pentium plain, or any other x86 compatible */
+ PMMX = 1, /* Pentium with MMX */
+ PPRO = 2, /* Pentium Pro */
+ PII = 3, /* Pentium II */
+ C6X86 = 4,
+ C6X86MX = 5,
+ AMDK63D = 6,
+ AMDK6 = 7,
+ AMDK5 = 8,
+ MACG3 = 9,
+ MAC68K = 10,
+ XMM = 11, /* SIMD instructions */
+ WMT = 12, /* Willamette Processor */
+ SpecialProc = -1 /* Will NEVER be returned by CPUID, function dependent meaning */
+}PROCTYPE;
+
+#ifdef __cplusplus /* this ifdef only works correctly for Microsoft visual C compilers */
+
+extern "C" PROCTYPE findCPUId(void);
+
+#else
+
+/*
+ * **-findCPUId
+ *
+ * This function will return the type of CPU that you have in your system.
+ *
+ * Assumptions:
+ * None
+ *
+ * Inputs:
+ * None
+ *
+ * Output:
+ * The type of CPU that you have in your system is returned
+ *
+ */
+extern PROCTYPE findCPUId(void);
+
+#endif
+
+#endif /* CPUIDLIB_H */