Use 0/1 defines for backend and simd macros
[openal-soft.git] / core / cpu_caps.h
blob0826a49bd12a8d9b73320db4346545b762331b26
1 #ifndef CORE_CPU_CAPS_H
2 #define CORE_CPU_CAPS_H
4 #include <optional>
5 #include <string>
8 extern int CPUCapFlags;
9 enum {
10 CPU_CAP_SSE = 1<<0,
11 CPU_CAP_SSE2 = 1<<1,
12 CPU_CAP_SSE3 = 1<<2,
13 CPU_CAP_SSE4_1 = 1<<3,
14 CPU_CAP_NEON = 1<<4,
17 struct CPUInfo {
18 std::string mVendor;
19 std::string mName;
20 int mCaps{0};
23 std::optional<CPUInfo> GetCPUInfo();
25 #endif /* CORE_CPU_CAPS_H */