1cpu_family(3) Allegro manual cpu_family(3)
2
3
4
6 cpu_family - Contains the CPU type. Allegro game programming library.
7
9 #include <allegro.h>
10
11
12 extern int cpu_family;
13
15 Contains the Intel type, where applicable. Allegro defines the follow‐
16 ing CPU family types:
17
18 CPU_FAMILY_UNKNOWN - The type of processor is unknown
19 CPU_FAMILY_I386 - The processor is an Intel-compatible 386
20 CPU_FAMILY_I486 - The processor is an Intel-compatible 486
21 CPU_FAMILY_I586 - The processor is a Pentium or equivalent
22 CPU_FAMILY_I686 - The processor is a Pentium Pro, II, III
23 or equivalent
24 CPU_FAMILY_ITANIUM - The processor is an Itanium processor
25 CPU_FAMILY_POWERPC - The processor is a PowerPC processor
26 CPU_FAMILY_EXTENDED - The processor type needs to be read
27 from the cpu_model
28
29 You can read this variable after you have called check_cpu() (which is
30 automatically called by allegro_init()).
31
32
34 check_cpu(3), cpu_vendor(3), cpu_model(3), cpu_capabilities(3), alle‐
35 gro_init(3)
36
37
38
39Allegro version 4.2.3 cpu_family(3)