v2026.6.4
All Bundles
Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.

CPU

Operations for gathering information about the processor's features

Operations

GetCacheLineSize # function

Determine the L1 cache line size of the CPU

function : GetCacheLineSize() ~ Int

Return

TypeDescription
IntL1 cache line size of the CPU, in bytes.

GetCount # function

Get the number of CPU cores available

function : GetCount() ~ Int

Return

TypeDescription
Intthe total number of logical CPU cores

GetSystemRAM # function

Get the amount of RAM configured in the system

function : GetSystemRAM() ~ Int

Return

TypeDescription
Intamount of RAM in MB

Has3DNow # function

Determine whether the CPU has 3DNow! features

function : Has3DNow() ~ Bool

Return

TypeDescription
Booltrue if present, false otherwise

HasAVX # function

Determine whether the CPU has AVX features

function : HasAVX() ~ Bool

Return

TypeDescription
Booltrue if present, false otherwise

HasAVX2 # function

Determine whether the CPU has AVX2 features

function : HasAVX2() ~ Bool

Return

TypeDescription
Booltrue if present, false otherwise

HasAltiVec # function

Determine whether the CPU has AltiVec features

function : HasAltiVec() ~ Bool

Return

TypeDescription
Booltrue if present, false otherwise

HasMMX # function

Determine whether the CPU has MMX features

function : HasMMX() ~ Bool

Return

TypeDescription
Booltrue if present, false otherwise

HasRDTSC # function

Determine whether the CPU has the RDTSC instruction

function : HasRDTSC() ~ Bool

Return

TypeDescription
Booltrue if the CPU has the RDTSC instruction or false if not

HasSSE # function

Determine whether the CPU has SSE features

function : HasSSE() ~ Bool

Return

TypeDescription
Booltrue if present, false otherwise

HasSSE2 # function

Determine whether the CPU has SSE2 features

function : HasSSE2() ~ Bool

Return

TypeDescription
Booltrue if present, false otherwise

HasSSE3 # function

Determine whether the CPU has SSE3 features

function : HasSSE3() ~ Bool

Return

TypeDescription
Booltrue if present, false otherwise

HasSSE42 # function

Determine whether the CPU has SSE 4.2 features

function : HasSSE42() ~ Bool

Return

TypeDescription
Booltrue if present, false otherwise