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
2aff4696
Commit
2aff4696
authored
Nov 29, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add assembly helpers for filling solid rectangles.
parent
cb7917f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
primitives.c
dlls/gdi32/dibdrv/primitives.c
+14
-0
No files found.
dlls/gdi32/dibdrv/primitives.c
View file @
2aff4696
...
...
@@ -258,12 +258,26 @@ static inline void do_rop_codes_line_rev_1(BYTE *dst, int dst_x, const BYTE *src
static
inline
void
memset_32
(
DWORD
*
start
,
DWORD
val
,
DWORD
size
)
{
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
DWORD
dummy
;
__asm__
__volatile__
(
"cld; rep; stosl"
:
"=c"
(
dummy
),
"=D"
(
dummy
)
:
"a"
(
val
),
"0"
(
size
),
"1"
(
start
)
);
#else
while
(
size
--
)
*
start
++
=
val
;
#endif
}
static
inline
void
memset_16
(
WORD
*
start
,
WORD
val
,
DWORD
size
)
{
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
DWORD
dummy
;
__asm__
__volatile__
(
"cld; rep; stosw"
:
"=c"
(
dummy
),
"=D"
(
dummy
)
:
"a"
(
val
),
"0"
(
size
),
"1"
(
start
)
);
#else
while
(
size
--
)
*
start
++
=
val
;
#endif
}
static
void
solid_rects_32
(
const
dib_info
*
dib
,
int
num
,
const
RECT
*
rc
,
DWORD
and
,
DWORD
xor
)
...
...
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