75 lines
1.2 KiB
Zig
75 lines
1.2 KiB
Zig
const std = @import("std");
|
|
pub const c = @import("c.zig").c;
|
|
|
|
pub inline fn getNumLogicalCPUCores() c_int {
|
|
return c.SDL_GetNumLogicalCPUCores();
|
|
}
|
|
|
|
pub inline fn getCPUCacheLineSize() c_int {
|
|
return c.SDL_GetCPUCacheLineSize();
|
|
}
|
|
|
|
pub inline fn hasAltiVec() bool {
|
|
return c.SDL_HasAltiVec();
|
|
}
|
|
|
|
pub inline fn hasMMX() bool {
|
|
return c.SDL_HasMMX();
|
|
}
|
|
|
|
pub inline fn hasSSE() bool {
|
|
return c.SDL_HasSSE();
|
|
}
|
|
|
|
pub inline fn hasSSE2() bool {
|
|
return c.SDL_HasSSE2();
|
|
}
|
|
|
|
pub inline fn hasSSE3() bool {
|
|
return c.SDL_HasSSE3();
|
|
}
|
|
|
|
pub inline fn hasSSE41() bool {
|
|
return c.SDL_HasSSE41();
|
|
}
|
|
|
|
pub inline fn hasSSE42() bool {
|
|
return c.SDL_HasSSE42();
|
|
}
|
|
|
|
pub inline fn hasAVX() bool {
|
|
return c.SDL_HasAVX();
|
|
}
|
|
|
|
pub inline fn hasAVX2() bool {
|
|
return c.SDL_HasAVX2();
|
|
}
|
|
|
|
pub inline fn hasAVX512F() bool {
|
|
return c.SDL_HasAVX512F();
|
|
}
|
|
|
|
pub inline fn hasARMSIMD() bool {
|
|
return c.SDL_HasARMSIMD();
|
|
}
|
|
|
|
pub inline fn hasNEON() bool {
|
|
return c.SDL_HasNEON();
|
|
}
|
|
|
|
pub inline fn hasLSX() bool {
|
|
return c.SDL_HasLSX();
|
|
}
|
|
|
|
pub inline fn hasLASX() bool {
|
|
return c.SDL_HasLASX();
|
|
}
|
|
|
|
pub inline fn getSystemRAM() c_int {
|
|
return c.SDL_GetSystemRAM();
|
|
}
|
|
|
|
pub inline fn getSIMDAlignment() usize {
|
|
return c.SDL_GetSIMDAlignment();
|
|
}
|