Skip to main content

SDL_GetCPUCacheLineSize

Function SDL_GetCPUCacheLineSize 

Source
pub unsafe extern "C" fn SDL_GetCPUCacheLineSize() -> c_int
Expand description

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.

Thread Safety: It is safe to call this function from any thread.

Available Since: This function is available since SDL 3.2.0.