- Fix a warning in 1st of April's implementation of _rotl function.

svn path=/trunk/; revision=33767
This commit is contained in:
Aleksey Bragin 2008-05-30 12:10:28 +00:00
parent c4f0f3c668
commit c5d4f0f35a

View file

@ -684,7 +684,7 @@ static __inline__ __attribute__((always_inline)) unsigned short _rotl16(const un
static __inline__ __attribute__((always_inline)) unsigned short _rotl(const unsigned long value, const unsigned char shift)
{
unsigned short retval;
__asm__("roll %b[shift], %w[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;
}
#endif