[common] add runtime detection and selection of AVX/AVX2 support
This commit is contained in:
1 parent
5d4c1d348c
commit
3330f83af6
6 files changed
+245
-14
No files matched your search
@@ -29,4 +29,19 @@ bool cpuInfo_get(char * model, size_t modelSize, int * procs, int * cores,
|
||||
|
||||
void cpuInfo_log(void);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
bool sse, sse2, sse3, ssse3;
|
||||
bool fma;
|
||||
bool sse4_1, sse4_2;
|
||||
bool popcnt;
|
||||
bool aes;
|
||||
bool xsave, osxsave;
|
||||
bool avx, avx2;
|
||||
bool bmi1, bmi2;
|
||||
}
|
||||
CPUInfoFeatures;
|
||||
|
||||
const CPUInfoFeatures * cpuInfo_getFeatures(void);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user