SDL_GetCPUCacheLineSize(3)

SDL_GetCPUCacheLineSize3

Determine the l1 cache line size of the cpu.

Usage

#include "SDL3/SDL.h"

int SDL_GetCPUCacheLineSize(void);

Header file

Defined in SDL3/SDL_cpuinfo.h

Overview

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.