SDL_HasSSE2(3)
π SDL_HasSSE2(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we ask your CPU the most personal question imaginable: do you have SSE2 features? β¨
πΈ NAME πΈ
SDL_HasSSE2 β the lil function that figures out whether your CPU has SSE2 features π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_cpuinfo.h>
bool SDL_HasSSE2(void);
like. that's it. that's the whole thing. one include, one call, zero arguments. iconic π
β¨ DESCRIPTION β¨
So here's the vibe: SDL_HasSSE2 checks whether your CPU is out here rockin' with SSE2 features. π«Ά
But listen β on CPUs that aren't using Intel instruction sets, this always returns false. Always. No cap. It's not being shady, it's just literally not applicable to those chips, so it says false and moves on with its day. π
π RETURN VALUE π
trueβ your CPU has SSE2 features, slay πfalseβ it does not. no SSE2 for you, bestie π
π§ THREAD SAFETY π§
You can call this from any thread. Any of them. All of them. Go wild, it's safe. β¨π₯
β AVAILABILITY β
This function has been available since SDL 3.2.0. So if you're on anything older... babe, upgrade. π
π SEE ALSO π
the whole SSE family reunion, fr fr π
okay that's the page!! this came from the Simple Directmedia Layer project, SDL 3.4.18, and it's the SDL_HasSSE2(3) page π go check your CPU's vibes, bestie, ily π«Άβ¨
π¦ 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