mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
implement _byteswap_ushort for arm
svn path=/trunk/; revision=44628
This commit is contained in:
parent
6ececd457f
commit
440decaae9
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@
|
|||
#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;
|
||||
|
|
Loading…
Reference in a new issue