mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
- Really fix _rotl. Thanks KJK::Hyperion!
svn path=/trunk/; revision=33768
This commit is contained in:
parent
c5d4f0f35a
commit
944d8b65c4
|
@ -681,9 +681,9 @@ static __inline__ __attribute__((always_inline)) unsigned short _rotl16(const un
|
|||
}
|
||||
|
||||
#ifndef __MSVCRT__
|
||||
static __inline__ __attribute__((always_inline)) unsigned short _rotl(const unsigned long value, const unsigned char shift)
|
||||
static __inline__ __attribute__((always_inline)) unsigned long _rotl(const unsigned long value, const unsigned char shift)
|
||||
{
|
||||
unsigned short retval;
|
||||
unsigned long retval;
|
||||
__asm__("roll %b[shift], %k[retval]" : [retval] "=rm" (retval) : "[retval]" (value), [shift] "Nc" (shift));
|
||||
return retval;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue