module lib.sdl2.cpuinfo
Code Map
module lib.sdl2.cpuinfo;
enum SDL_CACHELINE_SIZE;
//! This function returns the number of CPU cores available.
fn SDL_GetCPUCount() i32;
//! This function returns the L1 cache line size of the CPU
fn SDL_GetCPUCacheLineSize() i32;
//! This function returns true if the CPU has the RDTSC instruction.
fn SDL_HasRDTSC() SDL_bool;
//! This function returns true if the CPU has AltiVec features.
fn SDL_HasAltiVec() SDL_bool;
//! This function returns true if the CPU has MMX features.
fn SDL_HasMMX() SDL_bool;
//! This function returns true if the CPU has 3DNow! features.
fn SDL_Has3DNow() SDL_bool;
//! This function returns true if the CPU has SSE features.
fn SDL_HasSSE() SDL_bool;
//! This function returns true if the CPU has SSE2 features.
fn SDL_HasSSE2() SDL_bool;
//! This function returns true if the CPU has SSE3 features.
fn SDL_HasSSE3() SDL_bool;
//! This function returns true if the CPU has SSE4.1 features.
fn SDL_HasSSE41() SDL_bool;
//! This function returns true if the CPU has SSE4.2 features.
fn SDL_HasSSE42() SDL_bool;
fn SDL_GetCPUCount() i32
This function returns the number of CPU cores available.
fn SDL_GetCPUCacheLineSize() i32
This function returns the L1 cache line size of the CPU
This is useful for determining multi-threaded structure padding or SIMD prefetch sizes.
fn SDL_HasRDTSC() SDL_bool
This function returns true if the CPU has the RDTSC instruction.
fn SDL_HasAltiVec() SDL_bool
This function returns true if the CPU has AltiVec features.
fn SDL_HasMMX() SDL_bool
This function returns true if the CPU has MMX features.
fn SDL_Has3DNow() SDL_bool
This function returns true if the CPU has 3DNow! features.
fn SDL_HasSSE() SDL_bool
This function returns true if the CPU has SSE features.
fn SDL_HasSSE2() SDL_bool
This function returns true if the CPU has SSE2 features.
fn SDL_HasSSE3() SDL_bool
This function returns true if the CPU has SSE3 features.
fn SDL_HasSSE41() SDL_bool
This function returns true if the CPU has SSE4.1 features.
fn SDL_HasSSE42() SDL_bool
This function returns true if the CPU has SSE4.2 features.