SDL_intrin.h: add SDL_rdtsc macro
This commit is contained in:
1 parent
b8c88cc584
commit
e2f51bf38e
2 files changed
+6
-7
No files matched your search
@@ -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