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
ce2be144
Commit
ce2be144
authored
Aug 08, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcomp: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
987fee37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
main.c
dlls/vcomp/main.c
+6
-6
No files found.
dlls/vcomp/main.c
View file @
ce2be144
...
@@ -523,7 +523,7 @@ void CDECL _vcomp_reduction_i1(unsigned int flags, char *dest, char val)
...
@@ -523,7 +523,7 @@ void CDECL _vcomp_reduction_i1(unsigned int flags, char *dest, char val)
_vcomp_atomic_bool_or_i1
,
_vcomp_atomic_bool_or_i1
,
};
};
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
op
=
min
(
op
,
sizeof
(
funcs
)
/
sizeof
(
funcs
[
0
]
)
-
1
);
op
=
min
(
op
,
ARRAY_SIZE
(
funcs
)
-
1
);
funcs
[
op
](
dest
,
val
);
funcs
[
op
](
dest
,
val
);
}
}
...
@@ -617,7 +617,7 @@ void CDECL _vcomp_reduction_i2(unsigned int flags, short *dest, short val)
...
@@ -617,7 +617,7 @@ void CDECL _vcomp_reduction_i2(unsigned int flags, short *dest, short val)
_vcomp_atomic_bool_or_i2
,
_vcomp_atomic_bool_or_i2
,
};
};
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
op
=
min
(
op
,
sizeof
(
funcs
)
/
sizeof
(
funcs
[
0
]
)
-
1
);
op
=
min
(
op
,
ARRAY_SIZE
(
funcs
)
-
1
);
funcs
[
op
](
dest
,
val
);
funcs
[
op
](
dest
,
val
);
}
}
...
@@ -711,7 +711,7 @@ void CDECL _vcomp_reduction_i4(unsigned int flags, int *dest, int val)
...
@@ -711,7 +711,7 @@ void CDECL _vcomp_reduction_i4(unsigned int flags, int *dest, int val)
_vcomp_atomic_bool_or_i4
,
_vcomp_atomic_bool_or_i4
,
};
};
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
op
=
min
(
op
,
sizeof
(
funcs
)
/
sizeof
(
funcs
[
0
]
)
-
1
);
op
=
min
(
op
,
ARRAY_SIZE
(
funcs
)
-
1
);
funcs
[
op
](
dest
,
val
);
funcs
[
op
](
dest
,
val
);
}
}
...
@@ -807,7 +807,7 @@ void CDECL _vcomp_reduction_i8(unsigned int flags, LONG64 *dest, LONG64 val)
...
@@ -807,7 +807,7 @@ void CDECL _vcomp_reduction_i8(unsigned int flags, LONG64 *dest, LONG64 val)
_vcomp_atomic_bool_or_i8
,
_vcomp_atomic_bool_or_i8
,
};
};
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
op
=
min
(
op
,
sizeof
(
funcs
)
/
sizeof
(
funcs
[
0
]
)
-
1
);
op
=
min
(
op
,
ARRAY_SIZE
(
funcs
)
-
1
);
funcs
[
op
](
dest
,
val
);
funcs
[
op
](
dest
,
val
);
}
}
...
@@ -891,7 +891,7 @@ void CDECL _vcomp_reduction_r4(unsigned int flags, float *dest, float val)
...
@@ -891,7 +891,7 @@ void CDECL _vcomp_reduction_r4(unsigned int flags, float *dest, float val)
_vcomp_atomic_bool_or_r4
,
_vcomp_atomic_bool_or_r4
,
};
};
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
op
=
min
(
op
,
sizeof
(
funcs
)
/
sizeof
(
funcs
[
0
]
)
-
1
);
op
=
min
(
op
,
ARRAY_SIZE
(
funcs
)
-
1
);
funcs
[
op
](
dest
,
val
);
funcs
[
op
](
dest
,
val
);
}
}
...
@@ -975,7 +975,7 @@ void CDECL _vcomp_reduction_r8(unsigned int flags, double *dest, double val)
...
@@ -975,7 +975,7 @@ void CDECL _vcomp_reduction_r8(unsigned int flags, double *dest, double val)
_vcomp_atomic_bool_or_r8
,
_vcomp_atomic_bool_or_r8
,
};
};
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
unsigned
int
op
=
(
flags
>>
8
)
&
0xf
;
op
=
min
(
op
,
sizeof
(
funcs
)
/
sizeof
(
funcs
[
0
]
)
-
1
);
op
=
min
(
op
,
ARRAY_SIZE
(
funcs
)
-
1
);
funcs
[
op
](
dest
,
val
);
funcs
[
op
](
dest
,
val
);
}
}
...
...
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