SDL_HasLSX(3)
π SDL_HasLSX(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages, this one's called SDL_HasLSX(3) and it's short, sweet, and honestly kinda niche, but we're gonna give it the full main-character treatment anyway β¨
πΈ NAME πΈ
SDL_HasLSX β figure out whether your CPU is out here rockin' LSX (LOONGARCH SIMD) features or not π
π SYNOPSIS π
#include <SDL3/SDL_cpuinfo.h>
bool SDL_HasLSX(void);
like yes, that's the whole thing, she's simple and she knows it π«Ά
π¦ DESCRIPTION π¦
so here's the tea: this function checks if the CPU you're running on has those LOONGARCH LSX SIMD goodies.
and lowkey important β on CPUs that aren't using LOONGARCH instruction sets, this always returns false. always always. no exceptions, no cap. it's not gonna go hunting around for features that literally cannot exist on that architecture, she just says no π
β¨ RETURN VALUE β¨
- returns
trueif the CPU has LOONGARCH LSX features π - returns
falseif it does not π
that's it, that's the whole vibe check π
π§ THREAD SAFETY π§
good news bestie: it is safe to call this function from any thread. go wild, call it from all of them, she can handle it π
β AVAILABILITY β
this function has been available since SDL 3.2.0 β so if you're on anything older, sorry babe, she's not there yet π
ngl there's not a single flag, argument, or environment variable in sight here β she takesvoidand gives you abool, and that is the entire personality. iconic behavior, honestly π
and that's the whole page!! tysm for reading, mwah π β¨
this little masterpiece comes to you from the fine folks at Simple Directmedia Layer, running SDL 3.4.18 β SDL_HasLSX(3), periodt π«Άπ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms