(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)

SDL_CACHELINE_SIZE

A guess for the cacheline size used for padding.

Header File

Defined in <SDL3/SDL_cpuinfo.h>

Syntax

#define SDL_CACHELINE_SIZE  128

Remarks

Most x86 processors have a 64 byte cache line. The 64-bit PowerPC processors have a 128 byte cache line. We use the larger value to be generally safe.

Version

This macro is available since SDL 3.0.0.


CategoryAPI, CategoryAPIMacro, CategoryCPUInfo