Hey Arch, next time you mess with code specific for an architecture you know nothing about, try to get at least the portable stuff right.

Fix _byteswap_ushort.

svn path=/trunk/; revision=44637
This commit is contained in:
Timo Kreuzer 2009-12-17 13:41:06 +00:00
parent f8e59069e2
commit 26c9ccdb64

View file

@ -37,7 +37,7 @@
__INTRIN_INLINE unsigned short _byteswap_ushort(unsigned short value)
{
return (value >> 8) || (value & 0xff);
return (value >> 8) || (value << 8);
}
__INTRIN_INLINE unsigned _CountLeadingZeros(long Mask)