diff options
author | Chris Robinson <[email protected]> | 2020-12-15 12:33:57 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-15 12:33:57 -0800 |
commit | 03358a0d8092520788690b7f143a4af098472b3f (patch) | |
tree | f5d92b4098b0e4f684df42a286b3a1ffde54d738 /alc/cpu_caps.h | |
parent | 9435641c0d285eae0fb0a2fb3523d75c032602ec (diff) |
Avoid changing the global CPU flags in FillCPUCaps
Diffstat (limited to 'alc/cpu_caps.h')
-rw-r--r-- | alc/cpu_caps.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/alc/cpu_caps.h b/alc/cpu_caps.h index 64a4ee45..190355b2 100644 --- a/alc/cpu_caps.h +++ b/alc/cpu_caps.h @@ -1,6 +1,10 @@ #ifndef CPU_CAPS_H #define CPU_CAPS_H +#include <string> + +#include "aloptional.h" + extern int CPUCapFlags; enum { @@ -11,6 +15,12 @@ enum { CPU_CAP_NEON = 1<<4, }; -void FillCPUCaps(int capfilter); +struct CPUInfo { + std::string mVendor; + std::string mName; + int mCaps{0}; +}; + +al::optional<CPUInfo> GetCPUInfo(); #endif /* CPU_CAPS_H */ |