Author: fireball
Date: Fri May 30 07:16:05 2008
New Revision: 33768
URL:
http://svn.reactos.org/svn/reactos?rev=33768&view=rev
Log:
- Really fix _rotl. Thanks KJK::Hyperion!
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:16:05 2008
@@ -681,9 +681,9 @@
}
#ifndef __MSVCRT__
-static __inline__ __attribute__((always_inline)) unsigned short _rotl(const unsigned long
value, const unsigned char shift)
-{
- unsigned short retval;
+static __inline__ __attribute__((always_inline)) unsigned long _rotl(const unsigned long
value, const unsigned char shift)
+{
+ unsigned long retval;
__asm__("roll %b[shift], %k[retval]" : [retval] "=rm" (retval) :
"[retval]" (value), [shift] "Nc" (shift));
return retval;
}