[compiler-rt] r256129 - [PGO] testing _WIN64 instead of _WIN32
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 20 11:55:15 PST 2015
Author: davidxl
Date: Sun Dec 20 13:55:15 2015
New Revision: 256129
URL: http://llvm.org/viewvc/llvm-project?rev=256129&view=rev
Log:
[PGO] testing _WIN64 instead of _WIN32
Modified:
compiler-rt/trunk/lib/profile/InstrProfilingPort.h
Modified: compiler-rt/trunk/lib/profile/InstrProfilingPort.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingPort.h?rev=256129&r1=256128&r2=256129&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingPort.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingPort.h Sun Dec 20 13:55:15 2015
@@ -25,14 +25,14 @@
#if COMPILER_RT_HAS_ATOMICS == 1
#ifdef _MSC_VER
#include <windows.h>
-#if defined(_WIN32)
-#define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
- (InterlockedCompareExchange((LONG volatile *)Ptr, (LONG)NewV, (LONG)OldV) == \
- (LONG)OldV)
-#else
+#if defined(_WIN64)
#define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
(InterlockedCompareExchange64((LONGLONG volatile *)Ptr, (LONGLONG)NewV, \
(LONGLONG)OldV) == (LONGLONG)OldV)
+#else
+#define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
+ (InterlockedCompareExchange((LONG volatile *)Ptr, (LONG)NewV, (LONG)OldV) == \
+ (LONG)OldV)
#endif
#else
#define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
More information about the llvm-commits
mailing list