Author: fireball
Date: Fri May 30 07:10:28 2008
New Revision: 33767
URL:
http://svn.reactos.org/svn/reactos?rev=33767&view=rev
Log:
- Fix a warning in 1st of April's implementation of _rotl function.
Modified:
trunk/reactos/include/psdk/intrin_x86.h
Modified: trunk/reactos/include/psdk/intrin_x86.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/intrin_x86.h?…
==============================================================================
--- trunk/reactos/include/psdk/intrin_x86.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/intrin_x86.h [iso-8859-1] Fri May 30 07:10:28 2008
@@ -684,7 +684,7 @@
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