[ros-diffs] [tkreuzer] 41722: intrin_x86: Don't test for __MSVCSRT__ when implementing _rotr and _rotl. gcc defines __MSVCSRT__ and "knows" these funtions, but doesn't implemnt them.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Wed Jul 1 02:40:08 CEST 2009


Author: tkreuzer
Date: Wed Jul  1 04:40:07 2009
New Revision: 41722

URL: http://svn.reactos.org/svn/reactos?rev=41722&view=rev
Log:
intrin_x86: Don't test for __MSVCSRT__ when implementing _rotr and _rotl. gcc defines __MSVCSRT__ and "knows" these funtions, but doesn't implemnt them.

Modified:
    trunk/reactos/include/crt/mingw32/intrin_x86.h

Modified: trunk/reactos/include/crt/mingw32/intrin_x86.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/mingw32/intrin_x86.h?rev=41722&r1=41721&r2=41722&view=diff
==============================================================================
--- trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] Wed Jul  1 04:40:07 2009
@@ -837,7 +837,6 @@
 	return retval;
 }
 
-#ifndef __MSVCRT__
 __INTRIN_INLINE unsigned int _rotl(unsigned int value, int shift)
 {
 	unsigned long retval;
@@ -851,7 +850,6 @@
 	__asm__("rorl %b[shift], %k[retval]" : [retval] "=rm" (retval) : "[retval]" (value), [shift] "Nc" (shift));
 	return retval;
 }
-#endif
 
 __INTRIN_INLINE unsigned char _rotr8(unsigned char value, unsigned char shift)
 {



More information about the Ros-diffs mailing list