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
817b134e
Commit
817b134e
authored
Mar 05, 2001
by
Vedran Rodic
Committed by
Alexandre Julliard
Mar 05, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made 8 bpp to 24 bit depth conversion in X11DRV_DIB_SetImageBits_8
faster by using inline asm.
parent
566a52ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
dib.c
graphics/x11drv/dib.c
+29
-0
No files found.
graphics/x11drv/dib.c
View file @
817b134e
...
...
@@ -978,6 +978,35 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
}
break
;
#endif
case
24
:
#if defined(__i386__) && defined(__GNUC__)
if
(
lines
&&
(
dstwidth
!=
left
)
&&
(
bmpImage
->
bits_per_pixel
==
32
))
{
for
(
h
=
lines
;
h
--
;
)
{
int
_cl1
,
_cl2
;
/* temp outputs for asm below */
/* Borrowed from DirectDraw */
__asm__
__volatile__
(
"xor %%eax,%%eax
\n
"
"cld
\n
"
"1:
\n
"
" lodsb
\n
"
" movl (%%edx,%%eax,4),%%eax
\n
"
" stosl
\n
"
" xor %%eax,%%eax
\n
"
" loop 1b
\n
"
:
"=S"
(
bits
),
"=D"
(
_cl1
),
"=c"
(
_cl2
)
:
"S"
(
bits
),
"D"
(
bmpImage
->
data
+
h
*
bmpImage
->
bytes_per_line
+
left
*
4
),
"c"
(
dstwidth
-
left
),
"d"
(
colors
)
:
"eax"
,
"cc"
,
"memory"
);
bits
=
(
srcbits
+=
linebytes
)
+
left
;
}
return
;
}
break
;
#endif
default:
break
;
/* use slow generic case below */
}
...
...
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