---
name: "cpu_family"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/cpu_family"
---

# cpu\_family(3alleg)

Contains the CPU type. Allegro game programming library.

## NAME

cpu\_family - Contains the CPU type. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**extern int cpu\_family;**

## DESCRIPTION

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()).

## SEE ALSO

[**check\_cpu**(3alleg)](/check_cpu/3alleg.md), [**cpu\_vendor**(3alleg)](/cpu_vendor/3alleg.md), [**cpu\_model**(3alleg)](/cpu_model/3alleg.md), [**cpu\_capabilities**(3alleg)](/cpu_capabilities/3alleg.md), [**allegro\_init**(3alleg)](/allegro_init/3alleg.md)
