From d42a1e6286d9b96c586f96eea20b9f23f67b20d7 Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Tue, 13 May 2014 13:59:05 +0000 Subject: [PATCH] Define the InterlockedCompareExchange64 intrinsic on 32-bits too git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208699 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/Intrin.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Headers/Intrin.h b/lib/Headers/Intrin.h index aa66ee6c61..ff6d2789b7 100644 --- a/lib/Headers/Intrin.h +++ b/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 \*----------------------------------------------------------------------------*/ -- 2.40.0