sdl3/generated/lib_sdl_cpuinfo library

Functions

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