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
b6f53e37
Commit
b6f53e37
authored
Sep 21, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of the assembly code, it doesn't really improve anything
(reported by Rein Klazes).
parent
e745b380
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
unicode.h
include/wine/unicode.h
+0
-23
No files found.
include/wine/unicode.h
View file @
b6f53e37
...
...
@@ -179,38 +179,15 @@ inline static int isprintW( WCHAR wc )
static
inline
unsigned
int
strlenW
(
const
WCHAR
*
str
)
{
#if defined(__i386__) && defined(__GNUC__)
int
dummy
,
res
;
__asm__
__volatile__
(
"cld
\n\t
"
"repnz
\n\t
"
"scasw
\n\t
"
"notl %0"
:
"=c"
(
res
),
"=&D"
(
dummy
)
:
"0"
(
0xffffffff
),
"1"
(
str
),
"a"
(
0
)
);
return
res
-
1
;
#else
const
WCHAR
*
s
=
str
;
while
(
*
s
)
s
++
;
return
s
-
str
;
#endif
}
static
inline
WCHAR
*
strcpyW
(
WCHAR
*
dst
,
const
WCHAR
*
src
)
{
#if defined(__i386__) && defined(__GNUC__)
int
dummy1
,
dummy2
,
dummy3
;
__asm__
__volatile__
(
"cld
\n
"
"1:
\t
lodsw
\n\t
"
"stosw
\n\t
"
"testw %%ax,%%ax
\n\t
"
"jne 1b"
:
"=&S"
(
dummy1
),
"=&D"
(
dummy2
),
"=&a"
(
dummy3
)
:
"0"
(
src
),
"1"
(
dst
)
:
"memory"
);
#else
WCHAR
*
p
=
dst
;
while
((
*
p
++
=
*
src
++
));
#endif
return
dst
;
}
...
...
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