Don't define __rdtsc if x86intrin.h already does.
This commit is contained in:
parent
81964517d6
commit
33ee04626d
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue