implement _byteswap_ushort for arm
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 16 Dec 2009 21:58:31 +0000 (21:58 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 16 Dec 2009 21:58:31 +0000 (21:58 +0000)
svn path=/trunk/; revision=44628

reactos/include/crt/mingw32/intrin_arm.h

index 99ddb47..39c166a 100644 (file)
 #define _ReturnAddress() (__builtin_return_address(0))
 #define _ReadWriteBarrier() __sync_synchronize()
 
+__INTRIN_INLINE unsigned short _byteswap_ushort(unsigned short value)
+{
+       return __builtin_bswap32(value) >> 16;
+}
+
 __INTRIN_INLINE unsigned _CountLeadingZeros(long Mask)
 {
     return Mask ? __builtin_clz(Mask) : 32;