sdl2/generated/lib_sdl_cpuinfo library

Functions

sdlGetCpuCacheLineSize() int
Determine the L1 cache line size of the CPU.
sdlGetCpuCount() int
Get the number of CPU cores available.
sdlGetSystemRam() int
Get the amount of RAM configured in the system.
sdlHas3DNow() bool
Determine whether the CPU has 3DNow! features.
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.
sdlHasRdtsc() bool
Determine whether the CPU has the RDTSC instruction.
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.
sdlSimdAlloc(int len) Pointer<NativeType>
Allocate memory in a SIMD-friendly way.
sdlSimdFree(Pointer<NativeType> ptr) → void
Deallocate memory obtained from SDL_SIMDAlloc
sdlSimdGetAlignment() int
Report the alignment this system needs for SIMD allocations.
sdlSimdRealloc(Pointer<NativeType> mem, int len) Pointer<NativeType>
Reallocate memory obtained from SDL_SIMDAlloc