From c5d4f0f35a2bb855dd271a70f33fa1a950532a4f Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Fri, 30 May 2008 12:10:28 +0000 Subject: [PATCH] - Fix a warning in 1st of April's implementation of _rotl function. svn path=/trunk/; revision=33767 --- reactos/include/psdk/intrin_x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/include/psdk/intrin_x86.h b/reactos/include/psdk/intrin_x86.h index 6aa7be4f22e..58c9d401b82 100644 --- a/reactos/include/psdk/intrin_x86.h +++ b/reactos/include/psdk/intrin_x86.h @@ -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