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
cf195437
Commit
cf195437
authored
Jan 18, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Jan 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Make sure interlocked_cmpxchg128 is defined on ARM64.
parent
0066f31e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
port.h
include/wine/port.h
+1
-1
interlocked.c
libs/port/interlocked.c
+2
-2
No files found.
include/wine/port.h
View file @
cf195437
...
...
@@ -435,7 +435,7 @@ extern __int64 interlocked_cmpxchg64( __int64 *dest, __int64 xchg, __int64 compa
extern
int
interlocked_xchg
(
int
*
dest
,
int
val
);
extern
void
*
interlocked_xchg_ptr
(
void
**
dest
,
void
*
val
);
extern
int
interlocked_xchg_add
(
int
*
dest
,
int
incr
);
#if
def _WIN64
#if
defined(__x86_64__) || defined(__aarch64__) || defined(_WIN64)
extern
unsigned
char
interlocked_cmpxchg128
(
__int64
*
dest
,
__int64
xchg_high
,
__int64
xchg_low
,
__int64
*
compare
);
#endif
...
...
libs/port/interlocked.c
View file @
cf195437
...
...
@@ -343,9 +343,9 @@ int interlocked_xchg_add( int *dest, int incr )
return
retv
;
}
int
interlocked_cmpxchg128
(
__int64
*
dest
,
__int64
xchg_high
,
__int64
xchg_low
,
__int64
*
compare
)
unsigned
char
interlocked_cmpxchg128
(
__int64
*
dest
,
__int64
xchg_high
,
__int64
xchg_low
,
__int64
*
compare
)
{
int
retv
;
unsigned
char
retv
;
pthread_mutex_lock
(
&
interlocked_mutex
);
if
(
dest
[
0
]
==
compare
[
0
]
&&
dest
[
1
]
==
compare
[
1
])
{
...
...
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