diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/libvp6/include/CPUIdLib.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/libvp6/include/CPUIdLib.h')
-rw-r--r-- | Src/libvp6/include/CPUIdLib.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Src/libvp6/include/CPUIdLib.h b/Src/libvp6/include/CPUIdLib.h new file mode 100644 index 00000000..9a95b065 --- /dev/null +++ b/Src/libvp6/include/CPUIdLib.h @@ -0,0 +1,57 @@ +/**************************************************************************** +* +* Module Title : CPUIdLib.h +* +* Description : CPU specific definitions. +* +****************************************************************************/ +#ifndef __INC_CPUIDLIB_H +#define __INC_CPUIDLIB_H + +/**************************************************************************** +* Typedefs +****************************************************************************/ +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; + +/**************************************************************************** +* Exports +****************************************************************************/ + +/**************************************************************************** + * + * ROUTINE : findCPUId + * + * INPUTS : None + * + * OUTPUTS : None. + * + * RETURNS : PROCTYPE: processor type. + * + * FUNCTION : Returns type of CPU in your system. + * + * SPECIAL NOTES : None. + * + ****************************************************************************/ +#ifdef __cplusplus /* this ifdef only works correctly for Microsoft visual C compilers */ +extern "C" PROCTYPE findCPUId ( void ); +#else +extern PROCTYPE findCPUId ( void ); +#endif + +#endif |