Files
fastfetch/src/detection/cpu/cpu.h
T

24 lines
453 B
C
Raw Normal View History

2022-09-04 22:20:12 +02:00
#pragma once
#include "fastfetch.h"
#define FF_CPU_TEMP_UNSET (0/0.0)
typedef struct FFCPUResult
{
FFstrbuf name;
FFstrbuf vendor;
uint16_t coresPhysical;
uint16_t coresLogical;
uint16_t coresOnline;
2024-03-13 23:42:59 +08:00
double frequencyBase; // GHz
double frequencyMax; // GHz
2022-09-04 22:20:12 +02:00
double temperature;
} FFCPUResult;
2024-03-12 23:48:03 +08:00
const char* ffCPUDetectByCpuid(FFCPUResult* cpu);
const char* ffDetectCPU(const FFCPUOptions* options, FFCPUResult* cpu);