aboutsummaryrefslogtreecommitdiffstats
path: root/alc/cpu_caps.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-15 12:33:57 -0800
committerChris Robinson <[email protected]>2020-12-15 12:33:57 -0800
commit03358a0d8092520788690b7f143a4af098472b3f (patch)
treef5d92b4098b0e4f684df42a286b3a1ffde54d738 /alc/cpu_caps.h
parent9435641c0d285eae0fb0a2fb3523d75c032602ec (diff)
Avoid changing the global CPU flags in FillCPUCaps
Diffstat (limited to 'alc/cpu_caps.h')
-rw-r--r--alc/cpu_caps.h12
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 */