SDL Wiki
(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


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.