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