mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:05:40 +00:00
- Really fix _rotl. Thanks KJK::Hyperion!
svn path=/trunk/; revision=33768
This commit is contained in:
parent
c5d4f0f35a
commit
944d8b65c4
1 changed files with 2 additions and 2 deletions
|
@ -681,9 +681,9 @@ static __inline__ __attribute__((always_inline)) unsigned short _rotl16(const un
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __MSVCRT__
|
#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));
|
__asm__("roll %b[shift], %k[retval]" : [retval] "=rm" (retval) : "[retval]" (value), [shift] "Nc" (shift));
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue