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
This commit is contained in:
Magnus Olsen 2006-08-30 17:51:36 +00:00
parent 7ea78797f2
commit ec839eb8e2

View file

@ -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
}