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