- Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSWcpu.h
More file actions
Latest commit
24 lines (20 loc) · 599 Bytes
/
Copy pathSWcpu.h
File metadata and controls
24 lines (20 loc) · 599 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndefSWCPU_H
#defineSWCPU_H
#include"SWtypes.h"
typedefstructSWcpu_info {
char*vendor;
char*model;
SWintnum_cpus;
SWfloatphysical_memory;
// features
unsignedsse2_supported : 1;
unsignedsse3_supported : 1;
unsignedssse3_supported : 1;
unsignedsse41_supported : 1;
unsignedavx_supported : 1;
unsignedavx2_supported : 1;
unsignedavx512_supported : 1;
} SWcpu_info;
voidswCPUInfoInit(SWcpu_info*info);
voidswCPUInfoDestroy(SWcpu_info*info);
#endif// SWCPU_H