mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +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
1 changed files with 0 additions and 2 deletions
|
@ -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