PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/src/mavencore/util/SystemArchitecture.h

https://bitbucket.org/chancey/maven
C Header | 38 lines | 22 code | 10 blank | 6 comment | 0 complexity | af1c1f7c5501ed79357f7797875ed0c5 MD5 | raw file
  1. #ifndef MAVENCORE_UTIL_SYSTEMARCHITECTURE
  2. #define MAVENCORE_UTIL_SYSTEMARCHITECTURE 1
  3. #include "../mavencore.h"
  4. // System architecture information
  5. namespace util {
  6. /**
  7. * @author Alex <aimmig2@hotmail.com>
  8. * @url http://www.sandpile.org/ia32/cpuid.htm for more information on what each CPUID function does and what
  9. * each bit returned represents
  10. */
  11. class SystemArchitecture : public maven::Object {
  12. private_static_method bool CPUID(int Function, int bit, char reg);
  13. private_static_method int CPUID(int Function, char reg);
  14. public_static_method mboolean MMX();
  15. public_static_method mboolean SSE();
  16. public_static_method mboolean SSE2();
  17. public_static_method mboolean SSE3();
  18. public_static_method mboolean SSSE3();
  19. public_static_method mboolean SSE4A();
  20. public_static_method mboolean SSE41();
  21. public_static_method mboolean SSE42();
  22. public_static_method mboolean P16BATOMIC();
  23. public_static_method mboolean LONGMODE();
  24. public_static_method mboolean multiProcessorCapable();
  25. public_static_method mint totalCores();
  26. };
  27. }
  28. #endif