mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 12:20:21 +00:00
- Fix a warning in 1st of April's implementation of _rotl function.
svn path=/trunk/; revision=33767
This commit is contained in:
parent
c4f0f3c668
commit
c5d4f0f35a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue