🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
417 B

  1. #ifndef CORE_CPU_CAPS_H
  2. #define CORE_CPU_CAPS_H
  3. #include <string>
  4. #include "aloptional.h"
  5. extern int CPUCapFlags;
  6. enum {
  7. CPU_CAP_SSE = 1<<0,
  8. CPU_CAP_SSE2 = 1<<1,
  9. CPU_CAP_SSE3 = 1<<2,
  10. CPU_CAP_SSE4_1 = 1<<3,
  11. CPU_CAP_NEON = 1<<4,
  12. };
  13. struct CPUInfo {
  14. std::string mVendor;
  15. std::string mName;
  16. int mCaps{0};
  17. };
  18. al::optional<CPUInfo> GetCPUInfo();
  19. #endif /* CORE_CPU_CAPS_H */