Further simplify atomic ops on Visual Studio

This commit is contained in:
Behdad Esfahbod 2012-07-14 12:15:54 -04:00
parent 0a49235701
commit fa2bd9fb63
1 changed files with 0 additions and 5 deletions

View File

@ -46,12 +46,7 @@
#include <intrin.h>
/* On x86, _InterlockedCompareExchangePointer is a macro defined in concrt.h */
#if defined(_M_IX86)
#include <concrt.h>
#pragma intrinsic(_InterlockedExchangeAdd)
#else
#pragma intrinsic(_InterlockedExchangeAdd, _InterlockedCompareExchangePointer)
#endif
typedef long hb_atomic_int_t;
#define hb_atomic_int_add(AI, V) _InterlockedExchangeAdd (&(AI), (V))