[PATCH 6/8] wined3d: Move wined3d_bit_scan() to public header.
Józef Kucia
jkucia at codeweavers.com
Thu Jan 24 05:31:27 CST 2019
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/wined3d/wined3d_private.h | 7 -------
include/wine/wined3d.h | 7 +++++++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 0df3f2ab2a5e..7b265f366285 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -4582,13 +4582,6 @@ static inline BOOL is_rasterization_disabled(const struct wined3d_shader *geomet
&& geometry_shader->u.gs.so_desc.rasterizer_stream_idx == WINED3D_NO_RASTERIZER_STREAM;
}
-static inline int wined3d_bit_scan(unsigned int *x)
-{
- int bit_offset = ffs(*x) - 1;
- *x ^= 1u << bit_offset;
- return bit_offset;
-}
-
static inline DWORD wined3d_extract_bits(const DWORD *bitstream,
unsigned int offset, unsigned int count)
{
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index b0b1abc508e6..2a8afe8fca6f 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2782,6 +2782,13 @@ static inline unsigned int wined3d_log2i(unsigned int x)
#endif
}
+static inline int wined3d_bit_scan(unsigned int *x)
+{
+ int bit_offset = ffs(*x) - 1;
+ *x ^= 1u << bit_offset;
+ return bit_offset;
+}
+
static inline void wined3d_box_set(struct wined3d_box *box, unsigned int left, unsigned int top,
unsigned int right, unsigned int bottom, unsigned int front, unsigned int back)
{
--
2.19.2
More information about the wine-devel
mailing list