Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git] / vp32 / Include / CPUIdLib.h
blob550e467e575ff82ade46d52ccb21c1d77a1abea7
1 //==========================================================================
2 //
3 // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
4 // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
5 // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
6 // PURPOSE.
7 //
8 // Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
9 //
10 //--------------------------------------------------------------------------
14 #ifndef _CPUIDLIB_H
15 #define _CPUIDLIB_H
17 typedef enum PROCTYPE {
18 X86 = 0, /* 486, Pentium plain, or any other x86 compatible */
19 PMMX = 1, /* Pentium with MMX */
20 PPRO = 2, /* Pentium Pro */
21 PII = 3, /* Pentium II */
22 C6X86 = 4,
23 C6X86MX = 5,
24 AMDK63D = 6,
25 AMDK6 = 7,
26 AMDK5 = 8,
27 MACG3 = 9,
28 MAC68K = 10,
29 XMM = 11, /* SIMD instructions */
30 WMT = 12, /* Willamette Processor */
31 SpecialProc = -1 /* Will NEVER be returned by CPUID, function dependent meaning */
32 }PROCTYPE;
34 #ifdef __cplusplus /* this ifdef only works correctly for Microsoft visual C compilers */
36 extern "C" PROCTYPE findCPUId(void);
38 #else
41 * **-findCPUId
43 * This function will return the type of CPU that you have in your system.
45 * Assumptions:
46 * None
48 * Inputs:
49 * None
51 * Output:
52 * The type of CPU that you have in your system is returned
55 extern PROCTYPE findCPUId(void);
57 #endif
59 #endif /* CPUIDLIB_H */