Improve performance calculating reverb panning
[openal-soft.git] / core / cpu_caps.h
blobffd671d0dcfc3c5d19bdaf48c299468e25029347
1 #ifndef CORE_CPU_CAPS_H
2 #define CORE_CPU_CAPS_H
4 #include <string>
6 #include "aloptional.h"
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,
18 struct CPUInfo {
19 std::string mVendor;
20 std::string mName;
21 int mCaps{0};
24 al::optional<CPUInfo> GetCPUInfo();
26 #endif /* CORE_CPU_CAPS_H */