SDL_HasARMSIMD(3)

✨ SDL_HasARMSIMD ✨

okay bestie, welcome to the SDL_HasARMSIMD page from the SDL3 FUNCTIONS collection πŸ’… this is your lil vibe check for the CPU, fr fr.


🌸 NAME 🌸

SDL_HasARMSIMD β€” determine whether the CPU has ARM SIMD (ARMv6) features 🧚


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_cpuinfo.h>

bool SDL_HasARMSIMD(void);

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, heads up: this is not the same thing as ARM NEON. NEON is a whole different instruction set, okay? don't mix them up, i'm begging 😭

also, on CPUs that aren't using ARM instruction sets at all, this function always returns false. like, every single time. no cap.


πŸ’– RETURN VALUE πŸ’–

  • true β€” slay, the CPU has ARM SIMD features πŸ‘‘
  • false β€” nope, it does not πŸ™ˆ

πŸ”₯ THREAD SAFETY πŸ”₯

it is safe to call this function from any thread. go off, call it from wherever, it's fine 🫢


⭐ AVAILABILITY ⭐

this function has been available since SDL 3.2.0. iconic behavior, honestly.


🌈 SEE ALSO 🌈


and that's the whole page, bestie! this one's from the Simple Directmedia Layer girlies, SDL 3.4.18 era, dated at the bottom of the og page πŸ’œ mwah, go check your CPU's vibes responsibly βœ¨πŸŽ€

πŸ“¦ where this page comes from