mirror of
https://github.com/reactos/reactos.git
synced 2024-09-04 01:29:31 +00:00
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:
parent
7ea78797f2
commit
ec839eb8e2
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue