Commit 74a3b133 authored by Yuxuan Shui's avatar Yuxuan Shui Committed by Alexandre Julliard

include: Add InterlockedExchangeAdd16.

parent 3e84b493
......@@ -6756,6 +6756,7 @@ typedef enum _FIRMWARE_TYPE
#define InterlockedDecrement64 _InterlockedDecrement64
#define InterlockedExchange _InterlockedExchange
#define InterlockedExchangeAdd _InterlockedExchangeAdd
#define InterlockedExchangeAdd16 _InterlockedExchangeAdd16
#define InterlockedExchangeAdd64 _InterlockedExchangeAdd64
#define InterlockedExchangePointer _InterlockedExchangePointer
#define InterlockedIncrement _InterlockedIncrement
......@@ -6776,6 +6777,7 @@ typedef enum _FIRMWARE_TYPE
#pragma intrinsic(_InterlockedCompareExchangePointer)
#pragma intrinsic(_InterlockedExchange)
#pragma intrinsic(_InterlockedExchangeAdd)
#pragma intrinsic(_InterlockedExchangeAdd16)
#pragma intrinsic(_InterlockedExchangePointer)
#pragma intrinsic(_InterlockedIncrement)
#pragma intrinsic(_InterlockedIncrement16)
......@@ -6795,6 +6797,7 @@ long _InterlockedDecrement(long volatile*);
short _InterlockedDecrement16(short volatile*);
long _InterlockedExchange(long volatile*,long);
long _InterlockedExchangeAdd(long volatile*,long);
short _InterlockedExchangeAdd16(short volatile*,short);
void * _InterlockedExchangePointer(void *volatile*,void*);
long _InterlockedIncrement(long volatile*);
short _InterlockedIncrement16(short volatile*);
......@@ -7027,6 +7030,11 @@ static FORCEINLINE LONG WINAPI InterlockedExchangeAdd( LONG volatile *dest, LONG
return __sync_fetch_and_add( dest, incr );
}
static FORCEINLINE short WINAPI InterlockedExchangeAdd16( short volatile *dest, short incr )
{
return __sync_fetch_and_add( dest, incr );
}
static FORCEINLINE LONGLONG WINAPI InterlockedExchangeAdd64( LONGLONG volatile *dest, LONGLONG incr )
{
return __sync_fetch_and_add( dest, incr );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment