New info to be displayed (uarch and process) instead of other info (sha, aes, sse)

This commit is contained in:
Dr-Noob
2020-08-31 19:57:29 +02:00
parent ab1416563c
commit 1f80566f63
5 changed files with 75 additions and 51 deletions

View File

@@ -712,7 +712,7 @@ char* get_str_cpu_name(struct cpuInfo* cpu) {
char* get_str_avx(struct cpuInfo* cpu) {
//If all AVX are available, it will use up to 15
char* string = malloc(sizeof(char)*15+1);
char* string = malloc(sizeof(char)*17+1);
if(!cpu->AVX)
snprintf(string,2+1,"No");
else if(!cpu->AVX2)
@@ -757,11 +757,11 @@ char* get_str_sse(struct cpuInfo* cpu) {
last+=SSE4a_sl;
}
if(cpu->SSE4_1) {
snprintf(string+last,SSE4_1_sl+1,"SSE4_1,");
snprintf(string+last,SSE4_1_sl+1,"SSE4.1,");
last+=SSE4_1_sl;
}
if(cpu->SSE4_2) {
snprintf(string+last,SSE4_2_sl+1,"SSE4_2,");
snprintf(string+last,SSE4_2_sl+1,"SSE4.2,");
last+=SSE4_2_sl;
}