#include <stdbool.h> #include <stdint.h> #include <cpuinfo.h> #include <cpuinfo/log.h> #include <cpuinfo/utils.h> #include <x86/api.h> #include <x86/cpuid.h> enum topology_type { … }; void cpuinfo_x86_detect_topology( uint32_t max_base_index, uint32_t max_extended_index, struct cpuid_regs leaf1, struct cpuinfo_x86_topology* topology) { … }