1
0

Hardware.h 592 B

123456789101112131415161718192021222324252627282930
  1. #ifndef MANDEL_HARDWARE_H
  2. #define MANDEL_HARDWARE_H
  3. #include <string>
  4. namespace mnd
  5. {
  6. class CpuInfo;
  7. }
  8. class mnd::CpuInfo
  9. {
  10. std::string vendor;
  11. std::string brand;
  12. bool sse2;
  13. bool avx;
  14. bool avx512;
  15. public:
  16. CpuInfo(void);
  17. inline const std::string& getVendor(void) const { return vendor; };
  18. inline const std::string& getBrand(void) const { return brand; };
  19. inline bool hasSse2(void) const { return sse2; };
  20. inline bool hasAvx(void) const { return avx; };
  21. inline bool hasAvx512(void) const { return avx512; };
  22. };
  23. #endif // MANDEL_HARDWARE_H