SDL_GetCPUCacheLineSize - Determine the L1 cache line size of the CPU.
Contents
Availability
This function is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.10 SDL_GetCPUCacheLineSize(3)
Description
This is useful for determining multi-threaded structure padding or SIMD prefetch sizes.
Header File
Defined in SDL3/SDL_cpuinfo.h
Name
SDL_GetCPUCacheLineSize - Determine the L1 cache line size of the CPU.
Return Value
Returns the L1 cache line size of the CPU, in bytes.
Synopsis
#include"SDL3/SDL.h"intSDL_GetCPUCacheLineSize(void);
Thread Safety
It is safe to call this function from any thread.
