SDL_HasAVX2(3)
β¨ NAME β¨
SDL_HasAVX2 β bestie, this one is your little vibe check for whether the CPU has AVX2 features. π
So like, if you're in the SDL3 FUNCTIONS corner of the manual and you clicked on SDL_HasAVX2(3), welcome, you're in the right place. π«Ά
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_cpuinfo.h>
bool SDL_HasAVX2(void);
That's it. No args, no drama, just a bool coming back at you. π
π DESCRIPTION π
Okay so here's the tea: on CPUs that aren't using Intel instruction sets, this function always returns false. Like, always. Not sometimes. Always. No cap. π
π RETURN VALUE π
trueβ slay, the CPU has AVX2 features. πfalseβ nope, it does not. π
π§ THREAD SAFETY π§
You can call this from any thread. Any of them. All of them. It's safe, it's chill, it's unbothered. β¨
β AVAILABILITY β
This function has been available since SDL 3.2.0. So if you're on anything older... girl. π«
π¦ SEE ALSO π¦
Lowkey the shortest manpage ever and honestly? It ate. πΈ
Simple Directmedia Layer made this one, and this whole page is coming at you from SDL 3.4.18, dated right there in the footer as SDL_HasAVX2(3). Bye bestie, go check your CPU, mwah ππ
β¨
π¦ 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