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