sdlHasRdtsc function

bool sdlHasRdtsc()

Determine whether the CPU has the RDTSC instruction.

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

\returns SDL_TRUE if the CPU has the RDTSC instruction or SDL_FALSE if not.

\since This function is available since SDL 2.0.0.

\sa SDL_Has3DNow \sa SDL_HasAltiVec \sa SDL_HasAVX \sa SDL_HasAVX2 \sa SDL_HasMMX \sa SDL_HasSSE \sa SDL_HasSSE2 \sa SDL_HasSSE3 \sa SDL_HasSSE41 \sa SDL_HasSSE42

extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void)

Implementation

bool sdlHasRdtsc() {
  final sdlHasRdtscLookupFunction =
      libSdl2.lookupFunction<Int32 Function(), int Function()>('SDL_HasRDTSC');
  return sdlHasRdtscLookupFunction() == 1;
}