SDL_HasAltiVec(3)
π SDL_HasAltiVec π
okay bestie, sit down, we're doing a vibe check on your CPU π¦ this one lives in the SDL3 FUNCTIONS section of the SDL_HasAltiVec(3) manual, and it's basically the "do you even AltiVec, babe?" detector β¨
πΈ NAME πΈ
SDL_HasAltiVec β figure out whether the CPU has AltiVec features, no cap π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_cpuinfo.h>
bool SDL_HasAltiVec(void);
literally that's it, that's the whole thing π
π§ DESCRIPTION π§
So here's the tea: this function always returns false on CPUs that aren't using PowerPC instruction sets π like, it's not being shady, that's just the rules.
π RETURN VALUE π
trueβ yasss, the CPU has AltiVec features πfalseβ nope, it does not π
π«Ά THREAD SAFETY π«Ά
You can call this function from any thread and it's totally safe π₯ no drama, no locks, no chaos. main character energy fr fr.
π AVAILABILITY π
This function has been available since SDL 3.2.0 β so if you're on anything older, sorry babe, it's giving before-its-time π
lowkey a reminder: this is the check for AltiVec, so don't go inventing your own, iykyk π
okay that's the whole page, love you, bye πβ¨
Simple Directmedia Layer β SDL 3.4.18 β SDL_HasAltiVec(3) π mwah, go compile something iconic π¦π
π¦ 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