sdl3/sdl_cpuinfo library

Functions

sdlGetCpuCacheLineSize() → int cpuinfo
Determine the L1 cache line size of the CPU.
sdlGetNumLogicalCpuCores() → int cpuinfo
Get the number of logical CPU cores available.
sdlGetSimdAlignment() → int cpuinfo
Report the alignment this system needs for SIMD allocations.
sdlGetSystemPageSize() → int cpuinfo
Report the size of a page of memory.
sdlGetSystemRam() → int cpuinfo
Get the amount of RAM configured in the system.
sdlHasAltiVec() → bool cpuinfo
Determine whether the CPU has AltiVec features.
sdlHasArmsimd() → bool cpuinfo
Determine whether the CPU has ARM SIMD (ARMv6) features.
sdlHasAvx() → bool cpuinfo
Determine whether the CPU has AVX features.
sdlHasAvx2() → bool cpuinfo
Determine whether the CPU has AVX2 features.
sdlHasAvx512F() → bool cpuinfo
Determine whether the CPU has AVX-512F (foundation) features.
sdlHasLasx() → bool cpuinfo
Determine whether the CPU has LASX (LOONGARCH SIMD) features.
sdlHasLsx() → bool cpuinfo
Determine whether the CPU has LSX (LOONGARCH SIMD) features.
sdlHasMmx() → bool cpuinfo
Determine whether the CPU has MMX features.
sdlHasNeon() → bool cpuinfo
Determine whether the CPU has NEON (ARM SIMD) features.
sdlHasSse() → bool cpuinfo
Determine whether the CPU has SSE features.
sdlHasSse2() → bool cpuinfo
Determine whether the CPU has SSE2 features.
sdlHasSse3() → bool cpuinfo
Determine whether the CPU has SSE3 features.
sdlHasSse41() → bool cpuinfo
Determine whether the CPU has SSE4.1 features.
sdlHasSse42() → bool cpuinfo
Determine whether the CPU has SSE4.2 features.
sdlHasSve2() → bool cpuinfo
Determine whether the CPU has SVE2 (Scalable Vector Extension 2).