mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Don't define __rdtsc if x86intrin.h already does.
This commit is contained in:
@ -149,6 +149,10 @@ ps_adds1
|
||||
#else
|
||||
#include <memory>
|
||||
#include <stdint.h>
|
||||
#include <x86intrin.h>
|
||||
|
||||
#if defined(__clang__)
|
||||
#if !__has_builtin(__builtin_ia32_rdtsc)
|
||||
static inline uint64_t __rdtsc()
|
||||
{
|
||||
uint32_t lo, hi;
|
||||
@ -169,6 +173,8 @@ static inline uint64_t __rdtsc()
|
||||
return (uint64_t)hi << 32 | lo;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace JitILProfiler
|
||||
{
|
||||
|
Reference in New Issue
Block a user