sdlHasSse2 function

bool sdlHasSse2()

Determine whether the CPU has SSE2 features.

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

\returns true if the CPU has SSE2 features or false if not.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_HasSSE \sa SDL_HasSSE3 \sa SDL_HasSSE41 \sa SDL_HasSSE42

extern SDL_DECLSPEC bool SDLCALL SDL_HasSSE2(void)

Implementation

bool sdlHasSse2() {
  final sdlHasSse2LookupFunction =
      libSdl3.lookupFunction<Uint8 Function(), int Function()>('SDL_HasSSE2');
  return sdlHasSse2LookupFunction() == 1;
}