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.

§Return value

Returns the L1 cache line size of the CPU, in bytes.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.