sdl.cpuinfo

SDL CPU Info

Members

Functions

SDL_GetCPUCacheLineSize
int SDL_GetCPUCacheLineSize()

Determine the L1 cache line size of the CPU.

SDL_GetNumLogicalCPUCores
int SDL_GetNumLogicalCPUCores()

Get the number of logical CPU cores available.

SDL_GetSIMDAlignment
size_t SDL_GetSIMDAlignment()

Report the alignment this system needs for SIMD allocations.

SDL_GetSystemRAM
int SDL_GetSystemRAM()

Get the amount of RAM configured in the system.

SDL_HasARMSIMD
bool SDL_HasARMSIMD()

Determine whether the CPU has ARM SIMD (ARMv6) features.

SDL_HasAVX
bool SDL_HasAVX()

Determine whether the CPU has AVX features.

SDL_HasAVX2
bool SDL_HasAVX2()

Determine whether the CPU has AVX2 features.

SDL_HasAVX512F
bool SDL_HasAVX512F()

Determine whether the CPU has AVX-512F (foundation) features.

SDL_HasAltiVec
bool SDL_HasAltiVec()

Determine whether the CPU has AltiVec features.

SDL_HasLASX
bool SDL_HasLASX()

Determine whether the CPU has LASX (LOONGARCH SIMD) features.

SDL_HasLSX
bool SDL_HasLSX()

Determine whether the CPU has LSX (LOONGARCH SIMD) features.

SDL_HasMMX
bool SDL_HasMMX()

Determine whether the CPU has MMX features.

SDL_HasNEON
bool SDL_HasNEON()

Determine whether the CPU has NEON (ARM SIMD) features.

SDL_HasSSE
bool SDL_HasSSE()

Determine whether the CPU has SSE features.

SDL_HasSSE2
bool SDL_HasSSE2()

Determine whether the CPU has SSE2 features.

SDL_HasSSE3
bool SDL_HasSSE3()

Determine whether the CPU has SSE3 features.

SDL_HasSSE41
bool SDL_HasSSE41()

Determine whether the CPU has SSE4.1 features.

SDL_HasSSE42
bool SDL_HasSSE42()

Determine whether the CPU has SSE4.2 features.

Manifest constants

SDL_CACHE_LINE_SIZE
enum SDL_CACHE_LINE_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_CACHE_LINE_SIZE
enum SDL_CACHE_LINE_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_CACHE_LINE_SIZE
enum SDL_CACHE_LINE_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_CACHE_LINE_SIZE
enum SDL_CACHE_LINE_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

See Also

Meta

License

Subject to the terms of the Zlib License, as written in the LICENSE file.

Authors

Luna Nielsen