Man page - sdl_getcpucachelinesize(3)

Packages contas this manual

Manual

SDL_GetCPUCacheLineSize(3) SDL3 FUNCTIONS SDL_GetCPUCacheLineSize(3)

SDL_GetCPUCacheLineSize - Determine the L1 cache line size of the CPU.

Defined in SDL3/SDL_cpuinfo.h

#include "SDL3/SDL.h"
int SDL_GetCPUCacheLineSize(void);

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

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

It is safe to call this function from any thread.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer