mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +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
1 changed files with 0 additions and 7 deletions
|
@ -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