sdlGetCpuCacheLineSize function
Determine the L1 cache line size of the CPU.
This is useful for determining multi-threaded structure padding or SIMD prefetch sizes.
\returns the L1 cache line size of the CPU, in bytes.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC int SDLCALL SDL_GetCPUCacheLineSize(void)
Implementation
int sdlGetCpuCacheLineSize() {
final sdlGetCpuCacheLineSizeLookupFunction =
libSdl3.lookupFunction<Int32 Function(), int Function()>(
'SDL_GetCPUCacheLineSize');
return sdlGetCpuCacheLineSizeLookupFunction();
}