mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
remove asm code from WINE string function.
svn path=/trunk/; revision=5266
This commit is contained in:
parent
457baf8e8c
commit
56670e025c
1 changed files with 0 additions and 11 deletions
|
@ -33,20 +33,9 @@
|
||||||
|
|
||||||
static inline unsigned int strlenW( const WCHAR *str )
|
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;
|
const WCHAR *s = str;
|
||||||
while (*s) s++;
|
while (*s) s++;
|
||||||
return s - str;
|
return s - str;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _ROS_WINE_PORT */
|
#endif /* _ROS_WINE_PORT */
|
||||||
|
|
Loading…
Reference in a new issue