Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a3c295d4
Commit
a3c295d4
authored
Jan 20, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add InterlockedIncrement16() and InterlockedDecrement16().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0d1345ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
winnt.h
include/winnt.h
+24
-0
No files found.
include/winnt.h
View file @
a3c295d4
...
...
@@ -6905,7 +6905,9 @@ static inline BOOLEAN BitScanReverse(DWORD *index, DWORD mask)
#pragma intrinsic(_InterlockedExchange)
#pragma intrinsic(_InterlockedExchangeAdd)
#pragma intrinsic(_InterlockedIncrement)
#pragma intrinsic(_InterlockedIncrement16)
#pragma intrinsic(_InterlockedDecrement)
#pragma intrinsic(_InterlockedDecrement16)
#pragma intrinsic(_InterlockedOr)
long
_InterlockedAnd
(
long
volatile
*
,
long
);
...
...
@@ -6915,9 +6917,11 @@ long long _InterlockedCompareExchange64(long long volatile*,long long,long long)
unsigned
char
_InterlockedCompareExchange128
(
volatile
__int64
*
,
__int64
,
__int64
,
__int64
*
);
#endif
long
_InterlockedDecrement
(
long
volatile
*
);
short
_InterlockedDecrement16
(
short
volatile
*
);
long
_InterlockedExchange
(
long
volatile
*
,
long
);
long
_InterlockedExchangeAdd
(
long
volatile
*
,
long
);
long
_InterlockedIncrement
(
long
volatile
*
);
short
_InterlockedIncrement16
(
short
volatile
*
);
long
_InterlockedOr
(
long
volatile
*
,
long
);
static
FORCEINLINE
LONG
WINAPI
InterlockedAnd
(
LONG
volatile
*
dest
,
LONG
val
)
...
...
@@ -6957,11 +6961,21 @@ static FORCEINLINE LONG WINAPI InterlockedIncrement( LONG volatile *dest )
return
_InterlockedIncrement
(
(
long
volatile
*
)
dest
);
}
static
FORCEINLINE
short
WINAPI
InterlockedIncrement16
(
short
volatile
*
dest
)
{
return
_InterlockedIncrement16
(
(
long
volatile
*
)
dest
);
}
static
FORCEINLINE
LONG
WINAPI
InterlockedDecrement
(
LONG
volatile
*
dest
)
{
return
_InterlockedDecrement
(
(
long
volatile
*
)
dest
);
}
static
FORCEINLINE
short
WINAPI
InterlockedDecrement16
(
short
volatile
*
dest
)
{
return
_InterlockedDecrement16
(
(
long
volatile
*
)
dest
);
}
static
FORCEINLINE
LONG
WINAPI
InterlockedOr
(
LONG
volatile
*
dest
,
LONG
val
)
{
return
_InterlockedOr
(
(
long
volatile
*
)
dest
,
val
);
...
...
@@ -7098,11 +7112,21 @@ static FORCEINLINE LONG WINAPI InterlockedIncrement( LONG volatile *dest )
return
__sync_add_and_fetch
(
dest
,
1
);
}
static
FORCEINLINE
short
WINAPI
InterlockedIncrement16
(
short
volatile
*
dest
)
{
return
__sync_add_and_fetch
(
dest
,
1
);
}
static
FORCEINLINE
LONG
WINAPI
InterlockedDecrement
(
LONG
volatile
*
dest
)
{
return
__sync_add_and_fetch
(
dest
,
-
1
);
}
static
FORCEINLINE
short
WINAPI
InterlockedDecrement16
(
short
volatile
*
dest
)
{
return
__sync_add_and_fetch
(
dest
,
-
1
);
}
static
FORCEINLINE
void
*
WINAPI
InterlockedExchangePointer
(
void
*
volatile
*
dest
,
void
*
val
)
{
void
*
ret
;
...
...
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