Author: tkreuzer
Date: Wed Dec 16 23:46:32 2009
New Revision: 44630
URL:
http://svn.reactos.org/svn/reactos?rev=44630&view=rev
Log:
fix _byteswap_ushort for old gccs
Modified:
trunk/reactos/include/crt/mingw32/intrin_arm.h
Modified: trunk/reactos/include/crt/mingw32/intrin_arm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/mingw32/intrin…
==============================================================================
--- trunk/reactos/include/crt/mingw32/intrin_arm.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/mingw32/intrin_arm.h [iso-8859-1] Wed Dec 16 23:46:32 2009
@@ -37,7 +37,7 @@
__INTRIN_INLINE unsigned short _byteswap_ushort(unsigned short value)
{
- return __builtin_bswap32(value) >> 16;
+ return (value >> 8) || (value & 0xff);
}
__INTRIN_INLINE unsigned _CountLeadingZeros(long Mask)