---
name: "SDL_HasLASX"
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_HasLASX"
---

# SDL\_HasLASX(3)

Determine whether the CPU has LASX (LOONGARCH SIMD) features.

## NAME

SDL\_HasLASX - Determine whether the CPU has LASX (LOONGARCH SIMD) features.

## HEADER FILE

Defined in SDL3/SDL\_cpuinfo.h

## SYNOPSIS

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

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

## DESCRIPTION

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

## RETURN VALUE

Returns true if the CPU has LOONGARCH LASX 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.
