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
26b56e4f
Commit
26b56e4f
authored
Feb 04, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcomp: Use correct integral type.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e3935268
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
main.c
dlls/vcomp/main.c
+20
-20
No files found.
dlls/vcomp/main.c
View file @
26b56e4f
...
...
@@ -626,78 +626,78 @@ void CDECL _vcomp_reduction_i2(unsigned int flags, short *dest, short val)
void
CDECL
_vcomp_atomic_add_i4
(
int
*
dest
,
int
val
)
{
InterlockedExchangeAdd
(
dest
,
val
);
InterlockedExchangeAdd
(
(
LONG
*
)
dest
,
val
);
}
void
CDECL
_vcomp_atomic_and_i4
(
int
*
dest
,
int
val
)
{
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
dest
,
old
&
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
(
LONG
*
)
dest
,
old
&
val
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_div_i4
(
int
*
dest
,
int
val
)
{
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
dest
,
old
/
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
(
LONG
*
)
dest
,
old
/
val
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_div_ui4
(
unsigned
int
*
dest
,
unsigned
int
val
)
{
unsigned
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
((
int
*
)
dest
,
old
/
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
((
LONG
*
)
dest
,
old
/
val
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_mul_i4
(
int
*
dest
,
int
val
)
{
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
dest
,
old
*
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
(
LONG
*
)
dest
,
old
*
val
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_or_i4
(
int
*
dest
,
int
val
)
{
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
dest
,
old
|
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
(
LONG
*
)
dest
,
old
|
val
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_shl_i4
(
int
*
dest
,
int
val
)
{
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
dest
,
old
<<
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
(
LONG
*
)
dest
,
old
<<
val
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_shr_i4
(
int
*
dest
,
int
val
)
{
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
dest
,
old
>>
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
(
LONG
*
)
dest
,
old
>>
val
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_shr_ui4
(
unsigned
int
*
dest
,
unsigned
int
val
)
{
unsigned
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
((
int
*
)
dest
,
old
>>
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
((
LONG
*
)
dest
,
old
>>
val
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_sub_i4
(
int
*
dest
,
int
val
)
{
InterlockedExchangeAdd
(
dest
,
-
val
);
InterlockedExchangeAdd
(
(
LONG
*
)
dest
,
-
val
);
}
void
CDECL
_vcomp_atomic_xor_i4
(
int
*
dest
,
int
val
)
{
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
dest
,
old
^
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
(
LONG
*
)
dest
,
old
^
val
,
old
)
!=
old
);
}
static
void
CDECL
_vcomp_atomic_bool_and_i4
(
int
*
dest
,
int
val
)
{
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
dest
,
old
&&
val
,
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
(
LONG
*
)
dest
,
old
&&
val
,
old
)
!=
old
);
}
static
void
CDECL
_vcomp_atomic_bool_or_i4
(
int
*
dest
,
int
val
)
{
int
old
;
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
dest
,
old
?
old
:
(
val
!=
0
),
old
)
!=
old
);
do
old
=
*
dest
;
while
(
InterlockedCompareExchange
(
(
LONG
*
)
dest
,
old
?
old
:
(
val
!=
0
),
old
)
!=
old
);
}
void
CDECL
_vcomp_reduction_i4
(
unsigned
int
flags
,
int
*
dest
,
int
val
)
...
...
@@ -822,7 +822,7 @@ void CDECL _vcomp_atomic_add_r4(float *dest, float val)
old
=
*
(
int
*
)
dest
;
*
(
float
*
)
&
new
=
*
(
float
*
)
&
old
+
val
;
}
while
(
InterlockedCompareExchange
((
int
*
)
dest
,
new
,
old
)
!=
old
);
while
(
InterlockedCompareExchange
((
LONG
*
)
dest
,
new
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_div_r4
(
float
*
dest
,
float
val
)
...
...
@@ -833,7 +833,7 @@ void CDECL _vcomp_atomic_div_r4(float *dest, float val)
old
=
*
(
int
*
)
dest
;
*
(
float
*
)
&
new
=
*
(
float
*
)
&
old
/
val
;
}
while
(
InterlockedCompareExchange
((
int
*
)
dest
,
new
,
old
)
!=
old
);
while
(
InterlockedCompareExchange
((
LONG
*
)
dest
,
new
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_mul_r4
(
float
*
dest
,
float
val
)
...
...
@@ -844,7 +844,7 @@ void CDECL _vcomp_atomic_mul_r4(float *dest, float val)
old
=
*
(
int
*
)
dest
;
*
(
float
*
)
&
new
=
*
(
float
*
)
&
old
*
val
;
}
while
(
InterlockedCompareExchange
((
int
*
)
dest
,
new
,
old
)
!=
old
);
while
(
InterlockedCompareExchange
((
LONG
*
)
dest
,
new
,
old
)
!=
old
);
}
void
CDECL
_vcomp_atomic_sub_r4
(
float
*
dest
,
float
val
)
...
...
@@ -855,7 +855,7 @@ void CDECL _vcomp_atomic_sub_r4(float *dest, float val)
old
=
*
(
int
*
)
dest
;
*
(
float
*
)
&
new
=
*
(
float
*
)
&
old
-
val
;
}
while
(
InterlockedCompareExchange
((
int
*
)
dest
,
new
,
old
)
!=
old
);
while
(
InterlockedCompareExchange
((
LONG
*
)
dest
,
new
,
old
)
!=
old
);
}
static
void
CDECL
_vcomp_atomic_bool_and_r4
(
float
*
dest
,
float
val
)
...
...
@@ -866,7 +866,7 @@ static void CDECL _vcomp_atomic_bool_and_r4(float *dest, float val)
old
=
*
(
int
*
)
dest
;
*
(
float
*
)
&
new
=
(
*
(
float
*
)
&
old
!=
0
.
0
)
?
(
val
!=
0
.
0
)
:
0
.
0
;
}
while
(
InterlockedCompareExchange
((
int
*
)
dest
,
new
,
old
)
!=
old
);
while
(
InterlockedCompareExchange
((
LONG
*
)
dest
,
new
,
old
)
!=
old
);
}
static
void
CDECL
_vcomp_atomic_bool_or_r4
(
float
*
dest
,
float
val
)
...
...
@@ -877,7 +877,7 @@ static void CDECL _vcomp_atomic_bool_or_r4(float *dest, float val)
old
=
*
(
int
*
)
dest
;
*
(
float
*
)
&
new
=
(
*
(
float
*
)
&
old
!=
0
.
0
)
?
*
(
float
*
)
&
old
:
(
val
!=
0
.
0
);
}
while
(
InterlockedCompareExchange
((
int
*
)
dest
,
new
,
old
)
!=
old
);
while
(
InterlockedCompareExchange
((
LONG
*
)
dest
,
new
,
old
)
!=
old
);
}
void
CDECL
_vcomp_reduction_r4
(
unsigned
int
flags
,
float
*
dest
,
float
val
)
...
...
@@ -1850,7 +1850,7 @@ static void CDECL c2vectparallel_wrapper(int start, int end, int step, int end_i
curr_end
-=
step
;
}
if
((
new_start
=
InterlockedCompareExchange
(
dynamic_start
,
next_start
,
start
))
!=
start
)
if
((
new_start
=
InterlockedCompareExchange
(
(
LONG
volatile
*
)
dynamic_start
,
next_start
,
start
))
!=
start
)
{
start
=
new_start
;
continue
;
...
...
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