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
3b9f6449
Commit
3b9f6449
authored
May 26, 2015
by
André Hentschel
Committed by
Alexandre Julliard
May 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Fix build on PowerPC.
parent
ab22ea74
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
interlocked.c
libs/port/interlocked.c
+15
-0
No files found.
libs/port/interlocked.c
View file @
3b9f6449
...
...
@@ -181,6 +181,9 @@ __ASM_GLOBAL_FUNC(interlocked_cmpxchg128,
"ret"
)
#elif defined(__powerpc__)
#if !(defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) && __SIZEOF_POINTER__ == 4) \
&& !(defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) && __SIZEOF_POINTER__ == 8)
void
*
interlocked_cmpxchg_ptr
(
void
**
dest
,
void
*
xchg
,
void
*
compare
)
{
void
*
ret
=
0
;
...
...
@@ -198,13 +201,17 @@ void* interlocked_cmpxchg_ptr( void **dest, void* xchg, void* compare)
:
"cr0"
,
"memory"
);
return
ret
;
}
#endif
#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
__int64
interlocked_cmpxchg64
(
__int64
*
dest
,
__int64
xchg
,
__int64
compare
)
{
/* FIXME: add code */
assert
(
0
);
}
#endif
#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
int
interlocked_cmpxchg
(
int
*
dest
,
int
xchg
,
int
compare
)
{
int
ret
=
0
;
...
...
@@ -222,7 +229,9 @@ int interlocked_cmpxchg( int *dest, int xchg, int compare)
:
"cr0"
,
"memory"
,
"r0"
);
return
ret
;
}
#endif
#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
int
interlocked_xchg_add
(
int
*
dest
,
int
incr
)
{
int
ret
=
0
;
...
...
@@ -239,7 +248,9 @@ int interlocked_xchg_add( int *dest, int incr )
);
return
ret
-
incr
;
}
#endif
#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
int
interlocked_xchg
(
int
*
dest
,
int
val
)
{
int
ret
=
0
;
...
...
@@ -253,7 +264,10 @@ int interlocked_xchg( int* dest, int val )
:
"cr0"
,
"memory"
,
"r0"
);
return
ret
;
}
#endif
#if !(defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) && __SIZEOF_POINTER__ == 4) \
&& !(defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) && __SIZEOF_POINTER__ == 8)
void
*
interlocked_xchg_ptr
(
void
**
dest
,
void
*
val
)
{
void
*
ret
=
NULL
;
...
...
@@ -267,6 +281,7 @@ void* interlocked_xchg_ptr( void** dest, void* val )
:
"cr0"
,
"memory"
,
"r0"
);
return
ret
;
}
#endif
#else
...
...
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