cpu_family(3alleg)

cpu_family3alleg

Contains the cpu type. allegro game programming library.

Usage

#include <allegro.h>

extern int cpu_family;

Overview

Contains the Intel type, where applicable. Allegro defines the following CPU family types:

   CPU_FAMILY_UNKNOWN  - The type of processor is unknown
   CPU_FAMILY_I386     - The processor is an Intel-compatible 386
   CPU_FAMILY_I486     - The processor is an Intel-compatible 486
   CPU_FAMILY_I586     - The processor is a Pentium or equivalent
   CPU_FAMILY_I686     - The processor is a Pentium Pro, II, III
                         or equivalent
   CPU_FAMILY_ITANIUM  - The processor is an Itanium processor
   CPU_FAMILY_POWERPC  - The processor is a PowerPC processor
   CPU_FAMILY_EXTENDED - The processor type needs to be read
                         from the cpu_model

You can read this variable after you have called check_cpu() (which is automatically called by allegro_init()).

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.