fix _byteswap_ushort for old gccs
[reactos.git] / reactos / include / crt / mingw32 / intrin_arm.h
index 39c166a..9921552 100644 (file)
@@ -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)