From 56670e025ce7cd5e6dcd5e9d803fd056e5a3646f Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Fri, 25 Jul 2003 21:42:14 +0000 Subject: [PATCH] remove asm code from WINE string function. svn path=/trunk/; revision=5266 --- reactos/include/wine/port.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/reactos/include/wine/port.h b/reactos/include/wine/port.h index 7fabbad7554..9ad3902659b 100644 --- a/reactos/include/wine/port.h +++ b/reactos/include/wine/port.h @@ -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 */