---
name: "check_cpu"
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/check_cpu"
---

# check\_cpu(3alleg)

Detects the CPU type. Allegro game programming library.

## NAME

check\_cpu - Detects the CPU type. Allegro game programming library.

## SYNOPSIS

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

**void check\_cpu();**

## DESCRIPTION

Detects the CPU type, setting the following global variables. You don't  normally need to call this, because allegro\_init() will do it for you.

## SEE ALSO

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