SDL_HasMMX(3)

πŸ’– SDL_HasMMX πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we're checking in on SDL_HasMMX πŸ¦‹


✨ NAME ✨

SDL_HasMMX β€” determine whether the CPU has MMX features πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_cpuinfo.h>

bool SDL_HasMMX(void);

✨ DESCRIPTION ✨

so basically this one goes and asks the universe "hey, does this CPU have MMX features?" πŸ‘‘

and here's the tea: on CPUs that aren't using Intel instruction sets, this thing always returns false. like, always always. no cap. πŸ™ˆ


✨ RETURN VALUE ✨

  • returns true if the CPU has MMX features πŸ”₯
  • returns false if not πŸ’€

✨ THREAD SAFETY ✨

it is safe to call this function from any thread 🫢 go wild, no locks needed, she's chill like that ✨


✨ AVAILABILITY ✨

this function is available since SDL 3.2.0 ⭐


🌸 quick vibe check: this is a yes/no question about your CPU, not a magic switch. you can't turn MMX on with it, you can only find out if it's already there. iykyk πŸ’…

and that's the whole page, bestie!! πŸŽ€ this little icon came to you from Simple Directmedia Layer, version SDL 3.4.18, and it lives its best life in the SDL_HasMMX(3) era of the SDL3 FUNCTIONS manual 🌈✨ love that for us, fr fr πŸ’–

πŸ“¦ where this page comes from