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
- GetCount
- GetSystemRAM
- Has3DNow
- HasAVX
- HasAVX2
- HasAltiVec
- HasMMX
- HasRDTSC
- HasSSE
- HasSSE2
- HasSSE3
- HasSSE42
GetCacheLineSize # function
Determine the L1 cache line size of the CPU
function : GetCacheLineSize() ~ IntReturn
| Type | Description |
|---|---|
| Int | L1 cache line size of the CPU, in bytes. |
GetCount # function
Get the number of CPU cores available
function : GetCount() ~ IntReturn
| Type | Description |
|---|---|
| Int | the total number of logical CPU cores |
GetSystemRAM # function
Get the amount of RAM configured in the system
function : GetSystemRAM() ~ IntReturn
| Type | Description |
|---|---|
| Int | amount of RAM in MB |
Has3DNow # function
Determine whether the CPU has 3DNow! features
function : Has3DNow() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if present, false otherwise |
HasAVX # function
Determine whether the CPU has AVX features
function : HasAVX() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if present, false otherwise |
HasAVX2 # function
Determine whether the CPU has AVX2 features
function : HasAVX2() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if present, false otherwise |
HasAltiVec # function
Determine whether the CPU has AltiVec features
function : HasAltiVec() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if present, false otherwise |
HasMMX # function
Determine whether the CPU has MMX features
function : HasMMX() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if present, false otherwise |
HasRDTSC # function
Determine whether the CPU has the RDTSC instruction
function : HasRDTSC() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if the CPU has the RDTSC instruction or false if not |
HasSSE # function
Determine whether the CPU has SSE features
function : HasSSE() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if present, false otherwise |
HasSSE2 # function
Determine whether the CPU has SSE2 features
function : HasSSE2() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if present, false otherwise |