From ec839eb8e24362f5df787c7ccfc4651ac86dbc5d Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Wed, 30 Aug 2006 17:51:36 +0000 Subject: [PATCH] Kill inline asm code compete in RtlUlongByteSwap for it doing swap wrong. we go back using the C version. Thanks Fireball svn path=/trunk/; revision=23804 --- reactos/lib/rtl/mem.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/reactos/lib/rtl/mem.c b/reactos/lib/rtl/mem.c index 52c54e18d0a..26265d27724 100644 --- a/reactos/lib/rtl/mem.c +++ b/reactos/lib/rtl/mem.c @@ -208,14 +208,7 @@ RtlUlongByteSwap( IN ULONG Source ) { -#if defined(__i386__) && defined(__GNUC__) - ULONG ret; -__asm__("bswap %0" : "=r" (ret) : "0" (Source) ); - return ret; -#else - return ((ULONG)RtlUshortByteSwap((USHORT)Source) << 16) | RtlUshortByteSwap((USHORT)(Source >> 16)); -#endif }