sdlHasNeon function

bool sdlHasNeon()

Determine whether the CPU has NEON (ARM SIMD) features.

This always returns false on CPUs that aren't using ARM instruction sets.

\returns SDL_TRUE if the CPU has ARM NEON features or SDL_FALSE if not.

\since This function is available since SDL 2.0.6.

extern DECLSPEC SDL_bool SDLCALL SDL_HasNEON(void)

Implementation

bool sdlHasNeon() {
  final sdlHasNeonLookupFunction =
      libSdl2.lookupFunction<Int32 Function(), int Function()>('SDL_HasNEON');
  return sdlHasNeonLookupFunction() == 1;
}