mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 01:48:11 +00:00
intrin_x86: Don't test for __MSVCSRT__ when implementing _rotr and _rotl. gcc defines __MSVCSRT__ and "knows" these funtions, but doesn't implemnt them.
svn path=/trunk/; revision=41722
This commit is contained in:
parent
fd848cadad
commit
8cb1238455
|
@ -837,7 +837,6 @@ __INTRIN_INLINE unsigned short _rotl16(unsigned short value, unsigned char shift
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __MSVCRT__
|
|
||||||
__INTRIN_INLINE unsigned int _rotl(unsigned int value, int shift)
|
__INTRIN_INLINE unsigned int _rotl(unsigned int value, int shift)
|
||||||
{
|
{
|
||||||
unsigned long retval;
|
unsigned long retval;
|
||||||
|
@ -851,7 +850,6 @@ __INTRIN_INLINE unsigned int _rotr(unsigned int value, int shift)
|
||||||
__asm__("rorl %b[shift], %k[retval]" : [retval] "=rm" (retval) : "[retval]" (value), [shift] "Nc" (shift));
|
__asm__("rorl %b[shift], %k[retval]" : [retval] "=rm" (retval) : "[retval]" (value), [shift] "Nc" (shift));
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
__INTRIN_INLINE unsigned char _rotr8(unsigned char value, unsigned char shift)
|
__INTRIN_INLINE unsigned char _rotr8(unsigned char value, unsigned char shift)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue