[profile] Add comments to portability macros for readability (NFC)
llvm-svn: 257126
This commit is contained in:
parent
cceedf79b4
commit
750a629555
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user