From 6d9d39d4c8254475250cd7ff55ab20038b05fcbd Mon Sep 17 00:00:00 2001 From: arcum42 Date: Sat, 17 Jul 2021 19:34:33 -0700 Subject: [PATCH] Completely remove __rdtsc define. (#4510) --- pcsx2/GS/GS.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/pcsx2/GS/GS.h b/pcsx2/GS/GS.h index 4d3fbd0507..6a269377c0 100644 --- a/pcsx2/GS/GS.h +++ b/pcsx2/GS/GS.h @@ -227,27 +227,6 @@ #endif } - #ifdef __GNUC__ - - // gcc 4.8 define __rdtsc but unfortunately the compiler crash... - // The redefine allow to skip the gcc __rdtsc version -- Gregory - #define __rdtsc _lnx_rdtsc - //static unsigned long long __rdtsc() - static unsigned long long _lnx_rdtsc() - { - #if defined(__amd64__) || defined(__x86_64__) - unsigned long long low, high; - __asm__ __volatile__("rdtsc" : "=a"(low), "=d"(high)); - return low | (high << 32); - #else - unsigned long long retval; - __asm__ __volatile__("rdtsc" : "=A"(retval)); - return retval; - #endif - } - - #endif - #endif extern std::string format(const char* fmt, ...);