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
629f2709
Commit
629f2709
authored
Jul 02, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Avoid depending on wine/port.h.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c28af247
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
wined3d.h
include/wine/wined3d.h
+8
-6
No files found.
include/wine/wined3d.h
View file @
629f2709
...
...
@@ -26,10 +26,6 @@
#ifndef __WINE_WINED3D_H
#define __WINE_WINED3D_H
#ifndef __WINE_WINE_PORT_H
# error You must include wine/port.h to use this header
#endif
#include "wine/list.h"
#define WINED3D_OK S_OK
...
...
@@ -2761,7 +2757,7 @@ HRESULT __cdecl wined3d_extract_shader_input_signature_from_dxbc(struct wined3d_
/* Return the integer base-2 logarithm of x. Undefined for x == 0. */
static
inline
unsigned
int
wined3d_log2i
(
unsigned
int
x
)
{
#if
def HAVE___BUILTIN_CLZ
#if
defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
return
__builtin_clz
(
x
)
^
0x1f
;
#else
static
const
unsigned
int
l
[]
=
...
...
@@ -2791,7 +2787,13 @@ static inline unsigned int wined3d_log2i(unsigned int x)
static
inline
int
wined3d_bit_scan
(
unsigned
int
*
x
)
{
int
bit_offset
=
ffs
(
*
x
)
-
1
;
int
bit_offset
;
#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
bit_offset
=
__builtin_ffs
(
*
x
)
-
1
;
#else
for
(
bit_offset
=
0
;
bit_offset
<
32
;
bit_offset
++
)
if
(
*
x
&
(
1u
<<
bit_offset
))
break
;
#endif
*
x
^=
1u
<<
bit_offset
;
return
bit_offset
;
}
...
...
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