summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-05-13 13:59:05 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-05-13 13:59:05 +0000
commita27b0441662a7adcfd2ab7e06077098fefb101a1 (patch)
tree6959029794bef8c20926ec8b57039c7f77d31033 /clang/lib/Headers
parent5812350591474b043ac283d15b4c128f153ea8b7 (diff)
downloadbcm5719-llvm-a27b0441662a7adcfd2ab7e06077098fefb101a1.tar.gz
bcm5719-llvm-a27b0441662a7adcfd2ab7e06077098fefb101a1.zip
Define the InterlockedCompareExchange64 intrinsic on 32-bits too
llvm-svn: 208699
Diffstat (limited to 'clang/lib/Headers')
-rw-r--r--clang/lib/Headers/Intrin.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Headers/Intrin.h b/clang/lib/Headers/Intrin.h
index aa66ee6c612..ff6d2789b72 100644
--- a/clang/lib/Headers/Intrin.h
+++ b/clang/lib/Headers/Intrin.h
@@ -825,14 +825,12 @@ _InterlockedCompareExchangePointer(void *volatile *_Destination,
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
\*----------------------------------------------------------------------------*/
OpenPOWER on IntegriCloud