mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
[CRT] Use ASM aliases for CLang builds
This commit is contained in:
parent
567a5231d5
commit
281389b7e7
|
@ -19,8 +19,16 @@
|
||||||
#pragma function(_rotr, _rotl, _rotr, _lrotl, _lrotr)
|
#pragma function(_rotr, _rotl, _rotr, _lrotl, _lrotr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned int _rotr( unsigned int value, int shift );
|
#if defined (__clang__) && !defined(_MSC_VER)
|
||||||
unsigned long _lrotr(unsigned long value, int shift);
|
#define ASM_ALIAS __asm__
|
||||||
|
#else
|
||||||
|
#define ASM_ALIAS(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
unsigned int _rotr( unsigned int value, int shift ) ASM_ALIAS("__rotr");
|
||||||
|
unsigned long _lrotr(unsigned long value, int shift) ASM_ALIAS("__lrotr");
|
||||||
|
unsigned int _rotl( unsigned int value, int shift ) ASM_ALIAS("__rotl");
|
||||||
|
unsigned long _lrotl( unsigned long value, int shift ) ASM_ALIAS("__lrotl");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
|
|
Loading…
Reference in a new issue