cpu_model(3alleg)

cpu_model3alleg

Contains the intel cpu submodel. allegro game programming library.

Usage

#include <allegro.h>

extern int cpu_model;

Overview

Contains the CPU submodel, where applicable. Allegro defines at least the following CPU family types (see include/allegro/system.h for a more complete list):

   CPU_FAMILY_I586:
      CPU_MODEL_PENTIUM, CPU_MODEL_K5, CPU_MODEL_K6
   CPU_FAMILY_I686:
      CPU_MODEL_PENTIUMPRO, CPU_MODEL_PENTIUMII,
      CPU_MODEL_PENTIUMIIIKATMAI, CPU_MODEL_PENTIUMIIICOPPERMINE,
      CPU_MODEL_ATHLON, CPU_MODEL_DURON
   CPU_FAMILY_EXTENDED:
      CPU_MODEL_PENTIUMIV, CPU_MODEL_XEON,
      CPU_MODEL_ATHLON64, CPU_MODEL_OPTERON
   CPU_FAMILY_POWERPC:
      CPU_MODEL_POWERPC_x, for x=601-604, 620, 750, 7400, 7450

You can read this variable after you have called check_cpu() (which is automatically called by allegro_init()). Make sure you check the cpu_family and cpu_vendor so you know which models make sense to check.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.