mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-21 14:55:39 +00:00
SDL_intrin.h: add SDL_rdtsc macro
This commit is contained in:
committed by
Anonymous Maarten
parent
b8c88cc584
commit
e2f51bf38e
@@ -368,11 +368,7 @@ static int intrinsics_testRDTSC(void *arg)
|
||||
{
|
||||
Sint64 ticks;
|
||||
|
||||
#if defined(_MSC_VER) || defined(__clang__)
|
||||
ticks = __rdtsc();
|
||||
#else
|
||||
ticks = _rdtsc();
|
||||
#endif
|
||||
ticks = SDL_rdtsc();
|
||||
|
||||
SDLTest_AssertCheck(SDL_TRUE, "rdtsc returned: %" SDL_PRIu64 " ticks", ticks);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user