Browse Source Download (without any required ccan dependencies)
cpuid
a CPUID instruction parser for x86/x86_64 CPUs.
Ahmed Samy <f.fallen45@gmail.com>
This module tries to keep-it-simple to get information about the CPU from the CPU.
#include <ccan/cpuid/cpuid.h>
#include <stdio.h>
int main(void)
{
uint32_t highest;
cpuid(CPUID_HIGHEST_EXTENDED_FUNCTION_SUPPORTED, &highest);
printf("Highest extended function supported: %d\n", highest);
return 0;
}
MIT