SDL_HasLASX(3)
β¨ SDL_HasLASX(3) β¨
okay so bestie, we're in the SDL3 FUNCTIONS section of the manual and today's main character is SDL_HasLASX π
she's short, she's sweet, she's a vibe check for your CPU.
πΈ NAME πΈ
SDL_HasLASX β Determine whether the CPU has LASX (LOONGARCH SIMD) features. π₯
π SYNOPSIS π
#include <SDL3/SDL_cpuinfo.h>
bool SDL_HasLASX(void);
π¦ DESCRIPTION π¦
So like, this one always returns false on CPUs that aren't using LOONGARCH instruction sets. no cap. if your chip isn't speaking LOONGARCH, she's just gonna shrug and hand you a false π
β RETURN VALUE β
Returns true if the CPU has LOONGARCH LASX features or false if not. that's it, that's the whole personality π«Ά
π THREAD SAFETY π
It is safe to call this function from any thread. every thread, any thread, all the threads β she does not care, she's unbothered, she's thriving β¨
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on something older than that... girl, upgrade π
π reminder: SDL_HasLASX is a yes/no queen. no side quests, no hidden gotchas, just LASX detection.
that's the whole page bestie, she ate and left no crumbs π
Simple Directmedia Layer Β· SDL 3.4.18 β mwah, ty for reading, see u in the next manpage ππ¦πΈ
π¦ 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