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