1
0

CPUIdLib.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. //--------------------------------------------------------------------------
  11. #ifndef _CPUIDLIB_H
  12. #define _CPUIDLIB_H
  13. typedef enum PROCTYPE {
  14. X86 = 0, /* 486, Pentium plain, or any other x86 compatible */
  15. PMMX = 1, /* Pentium with MMX */
  16. PPRO = 2, /* Pentium Pro */
  17. PII = 3, /* Pentium II */
  18. C6X86 = 4,
  19. C6X86MX = 5,
  20. AMDK63D = 6,
  21. AMDK6 = 7,
  22. AMDK5 = 8,
  23. MACG3 = 9,
  24. MAC68K = 10,
  25. XMM = 11, /* SIMD instructions */
  26. WMT = 12, /* Willamette Processor */
  27. SpecialProc = -1 /* Will NEVER be returned by CPUID, function dependent meaning */
  28. }PROCTYPE;
  29. #ifdef __cplusplus /* this ifdef only works correctly for Microsoft visual C compilers */
  30. extern "C" PROCTYPE findCPUId(void);
  31. #else
  32. /*
  33. * **-findCPUId
  34. *
  35. * This function will return the type of CPU that you have in your system.
  36. *
  37. * Assumptions:
  38. * None
  39. *
  40. * Inputs:
  41. * None
  42. *
  43. * Output:
  44. * The type of CPU that you have in your system is returned
  45. *
  46. */
  47. extern PROCTYPE findCPUId(void);
  48. #endif
  49. #endif /* CPUIDLIB_H */