Author: greatlrd
Date: Wed Aug 30 21:51:36 2006
New Revision: 23804
URL:
http://svn.reactos.org/svn/reactos?rev=23804&view=rev
Log:
Kill inline asm code compete in RtlUlongByteSwap for it doing swap wrong.
we go back using the C version. Thanks Fireball
Modified:
trunk/reactos/lib/rtl/mem.c
Modified: trunk/reactos/lib/rtl/mem.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/mem.c?rev=23804&am…
==============================================================================
--- trunk/reactos/lib/rtl/mem.c (original)
+++ trunk/reactos/lib/rtl/mem.c Wed Aug 30 21:51:36 2006
@@ -208,14 +208,7 @@
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
}