fix _byteswap_ushort for old gccs

svn path=/trunk/; revision=44630
This commit is contained in:
Timo Kreuzer 2009-12-16 22:46:32 +00:00
parent 8fbe2b1bf2
commit dd8d39902e

View file

@ -37,7 +37,7 @@
__INTRIN_INLINE unsigned short _byteswap_ushort(unsigned short value) __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) __INTRIN_INLINE unsigned _CountLeadingZeros(long Mask)