---
name: "SDL_GetCPUCacheLineSize"
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_GetCPUCacheLineSize"
---

# SDL\_GetCPUCacheLineSize(3)

Determine the L1 cache line size of the CPU.

## NAME

SDL\_GetCPUCacheLineSize - Determine the L1 cache line size of the CPU.

## HEADER FILE

Defined in SDL3/SDL\_cpuinfo.h

## SYNOPSIS

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

**int SDL\_GetCPUCacheLineSize(void);**

## DESCRIPTION

This is useful for determining multi-threaded structure padding or SIMD prefetch sizes.

## RETURN VALUE

Returns the L1 cache line size of the CPU, in bytes.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.
