---
name: "SDL_HasAVX"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_HasAVX"
---

# SDL\_HasAVX(3)

Determine whether the CPU has AVX features.

## NAME

SDL\_HasAVX - Determine whether the CPU has AVX features.

## HEADER FILE

Defined in SDL3/SDL\_cpuinfo.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_HasAVX(void);**

## DESCRIPTION

This always returns false on CPUs that aren't using Intel instruction sets.

## RETURN VALUE

Returns true if the CPU has AVX features or false if not.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_HasAVX2**(3)](/SDL_HasAVX2/3.md), **•**(3), [**SDL\_HasAVX512F**(3)](/SDL_HasAVX512F/3.md)
