---
name: "check_cpu"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/check_cpu/3alleg4"
---

# check\_cpu(3alleg4)

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**(3alleg4), **cpu\_family**(3alleg4), **cpu\_model**(3alleg4), **cpu\_capabilities**(3alleg4), **allegro\_init**(3alleg4)
