Move and rename SDL_rdtsc macro to testautomation

This commit is contained in:
Anonymous Maarten
2023-03-23 04:22:54 +01:00
committed by Anonymous Maarten
parent a06046c55c
commit 46f5c1fe6a
2 changed files with 14 additions and 10 deletions

View File

@@ -110,15 +110,6 @@ _m_prefetch(void *__P)
#endif
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)
# if (defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4)) || defined(__clang__) || defined(__ICC)) && !defined(SDL_DISABLE_RDTSC)
# define SDL_RDTSC_INTRINSICS 1
# if defined(_MSC_VER)
# include <intrin.h>
# else
# include <x86intrin.h>
# endif
# define SDL_rdtsc __rdtsc
# endif
# if ((defined(_MSC_VER) && !defined(_M_X64)) || defined(__MMX__) || defined(SDL_HAS_TARGET_ATTRIBS)) && !defined(SDL_DISABLE_MMX)
# define SDL_MMX_INTRINSICS 1
# include <mmintrin.h>