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
b317bf2d
Commit
b317bf2d
authored
Jul 24, 2003
by
Pierre d'Herbemont
Committed by
Alexandre Julliard
Jul 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the PowerPC interlocked assembler code volatile.
parent
43858e4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
winbase.h
include/winbase.h
+3
-3
No files found.
include/winbase.h
View file @
b317bf2d
...
...
@@ -1998,7 +1998,7 @@ extern inline LONG WINAPI InterlockedCompareExchange( PLONG dest, LONG xchg, LON
{
LONG
ret
=
0
;
LONG
scratch
;
__asm__
(
__asm__
__volatile__
(
"0: lwarx %0,0,%2
\n
"
" xor. %1,%4,%0
\n
"
" bne 1f
\n
"
...
...
@@ -2016,7 +2016,7 @@ extern inline LONG WINAPI InterlockedExchange( PLONG dest, LONG val );
extern
inline
LONG
WINAPI
InterlockedExchange
(
PLONG
dest
,
LONG
val
)
{
LONG
ret
=
0
;
__asm__
(
__asm__
__volatile__
(
"0: lwarx %0,0,%1
\n
"
" stwcx. %2,0,%1
\n
"
" bne- 0b
\n
"
...
...
@@ -2032,7 +2032,7 @@ extern inline LONG WINAPI InterlockedExchangeAdd( PLONG dest, LONG incr )
{
LONG
ret
=
0
;
LONG
zero
=
0
;
__asm__
(
__asm__
__volatile__
(
"0: lwarx %0, %3, %1
\n
"
" add %0, %2, %0
\n
"
" stwcx. %0, %3, %1
\n
"
...
...
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