r208699 - Define the InterlockedCompareExchange64 intrinsic on 32-bits too

Timur Iskhodzhanov timurrrr at google.com
Tue May 13 06:59:06 PDT 2014


Author: timurrrr
Date: Tue May 13 08:59:05 2014
New Revision: 208699

URL: http://llvm.org/viewvc/llvm-project?rev=208699&view=rev
Log:
Define the InterlockedCompareExchange64 intrinsic on 32-bits too

Modified:
    cfe/trunk/lib/Headers/Intrin.h

Modified: cfe/trunk/lib/Headers/Intrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/Intrin.h?rev=208699&r1=208698&r2=208699&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/Intrin.h (original)
+++ cfe/trunk/lib/Headers/Intrin.h Tue May 13 08:59:05 2014
@@ -825,14 +825,12 @@ _InterlockedCompareExchangePointer(void
   return _Comparand;
 }
 #endif
-#ifdef __x86_64__
 static __inline__ __int64 __attribute__((__always_inline__, __nodebug__))
 _InterlockedCompareExchange64(__int64 volatile *_Destination,
                               __int64 _Exchange, __int64 _Comparand) {
   __atomic_compare_exchange(_Destination, &_Comparand, &_Exchange, 0, 0, 0);
   return _Comparand;
 }
-#endif
 /*----------------------------------------------------------------------------*\
 |* Barriers
 \*----------------------------------------------------------------------------*/





More information about the cfe-commits mailing list