remove asm code from WINE string function.

svn path=/trunk/; revision=5266
This commit is contained in:
Steven Edwards 2003-07-25 21:42:14 +00:00
parent 457baf8e8c
commit 56670e025c

View file

@ -33,20 +33,9 @@
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
}
#endif /* _ROS_WINE_PORT */