From c040a742e6cc6f34d6fd1b7d10241c076b66e6de Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Fri, 8 Jan 2016 00:49:34 +0000 Subject: [profile] Add comments to portability macros for readability (NFC) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@257126 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/profile/InstrProfilingPort.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/profile') diff --git a/lib/profile/InstrProfilingPort.h b/lib/profile/InstrProfilingPort.h index 5da814a4a..e07f59878 100644 --- a/lib/profile/InstrProfilingPort.h +++ b/lib/profile/InstrProfilingPort.h @@ -29,16 +29,16 @@ #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \ (InterlockedCompareExchange64((LONGLONG volatile *)Ptr, (LONGLONG)NewV, \ (LONGLONG)OldV) == (LONGLONG)OldV) -#else +#else /* !defined(_WIN64) */ #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \ (InterlockedCompareExchange((LONG volatile *)Ptr, (LONG)NewV, (LONG)OldV) == \ (LONG)OldV) #endif -#else +#else /* !defined(_MSC_VER) */ #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \ __sync_bool_compare_and_swap(Ptr, OldV, NewV) #endif -#else +#else /* COMPILER_RT_HAS_ATOMICS != 1 */ #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \ BoolCmpXchg((void **)Ptr, OldV, NewV) #endif -- cgit v1.2.3