- Really fix _rotl. Thanks KJK::Hyperion!

svn path=/trunk/; revision=33768
This commit is contained in:
Aleksey Bragin 2008-05-30 12:16:05 +00:00
parent c5d4f0f35a
commit 944d8b65c4

View file

@ -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;
}