🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
417 B

#ifndef CORE_CPU_CAPS_H
#define CORE_CPU_CAPS_H
#include <string>
#include "aloptional.h"
extern int CPUCapFlags;
enum {
CPU_CAP_SSE = 1<<0,
CPU_CAP_SSE2 = 1<<1,
CPU_CAP_SSE3 = 1<<2,
CPU_CAP_SSE4_1 = 1<<3,
CPU_CAP_NEON = 1<<4,
};
struct CPUInfo {
std::string mVendor;
std::string mName;
int mCaps{0};
};
al::optional<CPUInfo> GetCPUInfo();
#endif /* CORE_CPU_CAPS_H */