Drop some unnecessary definitions

__x86_64__ and __AMD64__ should be already defined by the compiler to
specify the compilation target and shouldn't be defined manually.

I fixed two x86_64 checks to include VS variables, as removing this
might cause it to fail to compile on that compiler.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I600ff449af85bf7d83ecab167d97933922e2d917
This commit is contained in:
Jeremy Newton
2022-03-11 17:53:45 -05:00
parent ddf4edcafc
commit 178a7a5cfa
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ class fast_clock {
typedef uint64_t raw_rep;
typedef double raw_frequency;
#ifdef __x86_64__
#if defined(__x86_64__) || defined(_M_X64)
static __forceinline raw_rep raw_now() { return __rdtsc(); }
static __forceinline raw_frequency raw_freq() { return freq; }
#else