XCPUInfo
typedef struct{
int logical_cpus;
int physical_cores;
int sockets;
bool hyperthreading;
int cache_size_l1_kb;
int cache_size_l2_kb;
int cache_size_l3_kb;
char brand_string[49];
CPUFeature feature_flags;
}XCPUInfo;
typedef struct{
int logical_cpus;
int physical_cores;
int sockets;
bool hyperthreading;
int cache_size_l1_kb;
int cache_size_l2_kb;
int cache_size_l3_kb;
char brand_string[49];
CPUFeature feature_flags;
}XCPUInfo;
Query static information about the host CPU. All data is gathered once per call and returned by value. The caller owns the returned structure and no dynamic memory is involved.
X_CPUID_API XCPUInfo x_cpu_info(void);
Structure containing CPU topology, cache sizes, brand string, and supported feature flags.