4 * cpuid - a CPUID instruction parser for x86/x86_64 CPUs.
6 * This module tries to keep-it-simple to get information about the CPU
10 * #include <ccan/cpuid/cpuid.h>
16 * cpuid(CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED, &highest);
17 * printf ("Highest extended function supported: %d\n", highest);
22 * Author: Ahmed Samy <f.fallen45@gmail.com>
27 int main(int argc, char *argv[])
32 if (strcmp(argv[1], "depends") == 0) {
33 #if defined(__i386__) || defined(__i386) || defined(__x86_64) \
34 || defined(_M_AMD64) || defined(__M_X64)
37 printf("ccan/build_assert\n");