1cpu_model(3)                    Allegro manual                    cpu_model(3)
2
3
4

NAME

6       cpu_model  -  Contains the Intel CPU submodel. Allegro game programming
7       library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       extern int cpu_model;
14

DESCRIPTION

16       Contains the CPU submodel, where applicable. Allegro defines  at  least
17       the following CPU family types (see include/allegro/system.h for a more
18       complete list):
19
20          CPU_FAMILY_I586:
21             CPU_MODEL_PENTIUM, CPU_MODEL_K5, CPU_MODEL_K6
22
23          CPU_FAMILY_I686:
24             CPU_MODEL_PENTIUMPRO, CPU_MODEL_PENTIUMII,
25             CPU_MODEL_PENTIUMIIIKATMAI, CPU_MODEL_PENTIUMIIICOPPERMINE,
26             CPU_MODEL_ATHLON, CPU_MODEL_DURON
27
28          CPU_FAMILY_EXTENDED:
29             CPU_MODEL_PENTIUMIV, CPU_MODEL_XEON,
30             CPU_MODEL_ATHLON64, CPU_MODEL_OPTERON
31
32          CPU_FAMILY_POWERPC:
33             CPU_MODEL_POWERPC_x, for x=601-604, 620, 750, 7400, 7450
34
35       You can read this variable after you have called check_cpu() (which  is
36       automatically  called  by  allegro_init()).  Make  sure  you  check the
37       cpu_family and cpu_vendor so you know which models make sense to check.
38
39

SEE ALSO

41       check_cpu(3), cpu_vendor(3), cpu_family(3), cpu_capabilities(3),  alle‐
42       gro_init(3)
43
44
45
46Allegro                          version 4.4.3                    cpu_model(3)
Impressum