Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
74a3b133
Commit
74a3b133
authored
Nov 06, 2023
by
Yuxuan Shui
Committed by
Alexandre Julliard
Nov 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add InterlockedExchangeAdd16.
parent
3e84b493
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
winnt.h
include/winnt.h
+8
-0
No files found.
include/winnt.h
View file @
74a3b133
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment