Detecting CPU vendor. Support for printing ascii

This commit is contained in:
Dr-Noob
2018-03-30 11:58:27 +02:00
parent 4e1ee88c4c
commit 3e1f6af8ae
8 changed files with 248 additions and 23 deletions

13
01h.h
View File

@@ -3,13 +3,24 @@
#define STRING_YES "Yes"
#define STRING_NO "No"
#define VENDOR_EMPTY 0
#define VENDOR_INTEL 1
#define VENDOR_AMD 2
#define VENDOR_INVALID 3
#define VENDOR_INTEL_STRING "GenuineIntel"
#define VENDOR_AMD_STRING "AuthenticAMD"
typedef int VENDOR;
struct cpuInfo;
struct cpuInfo* getCPUInfo();
void debugCpuInfo(struct cpuInfo* cpu);
char* getString_NumberCores(struct cpuInfo* cpu);
VENDOR getCPUVendorInternal(struct cpuInfo* cpu);
char* getPeakPerformance(struct cpuInfo* cpu, long freq);
char* getString_NumberCores(struct cpuInfo* cpu);
char* getString_AVX(struct cpuInfo* cpu);
char* getString_SSE(struct cpuInfo* cpu);
char* getString_FMA(struct cpuInfo* cpu);