SDL_HasNEON(3)

✨ SDL_HasNEON ✨

okay bestie, welcome to the SDL3 functions corner of the man pages, this one's SDL_HasNEON(3) and it's literally so simple you're gonna be obsessed πŸ’–


🌸 NAME 🌸

SDL_HasNEON β€” the lil vibe check that tells you whether your CPU has NEON (ARM SIMD) features πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_cpuinfo.h>

bool SDL_HasNEON(void);

like. that's the whole thing. one include, one function, zero arguments. slay ✨


πŸ’… DESCRIPTION πŸ’…

So here's the tea: this function peeks at your CPU and tells you if it's got NEON going on, which is the ARM SIMD situation πŸ‘‘

But important: on CPUs that aren't using ARM instruction sets, this always returns false. Always. No exceptions, no "well maybe", just false. Not me being dramatic, that's just literally what it does 🫢


⭐ RETURN VALUE ⭐

  • returns true if the CPU has ARM NEON features 🌈
  • returns false if it does not πŸ™ˆ

that's it. that's the whole return value situation. periodt πŸ’…


🧚 THREAD SAFETY 🧚

You can call this from any thread. Any of them. All of them. Go wild, bestie, it's safe 😌✨


πŸ‘‘ AVAILABILITY πŸ‘‘

This icon has been serving since SDL 3.2.0 πŸ’œ


fr fr the only thing you gotta remember is: ARM = maybe true, not-ARM = definitely false. no cap. πŸ“

and that's the whole page, bestie!! this gem came to you courtesy of Simple Directmedia Layer, living in SDL 3.4.18, filed under SDL_HasNEON(3) πŸŽ€πŸ’–βœ¨ go forth and detect some NEON πŸ¦‹

πŸ“¦ where this page comes from