reactos/sdk/lib/crt/stdlib/clang-alias.s
Timo Kreuzer dc77e7d379 [CRT] Use alias names for rot functions when compiling with Clang-CL
Clang-CL does not support #pragma function like CL. The alternative to this approach is to disable all intrinsics for this single source file, but that is not trivial to do, as it can only be done by removing a compiler switch, which we have no CMake support for. Therefore this solution is simpler and as good.
2019-02-12 19:31:33 +01:00

22 lines
452 B
ArmAsm

#include <asm.inc>
.code
MACRO(DEFINE_ALIAS, alias, orig, type)
EXTERN &orig:&type
ALIAS <&alias> = <&orig>
ENDM
#ifdef _M_X64
DEFINE_ALIAS _rotl, __function_rotl
DEFINE_ALIAS _rotr, __function_rotr
DEFINE_ALIAS _lrotl, __function_lrotl
DEFINE_ALIAS _lrotr, __function_lrotr
#else
DEFINE_ALIAS __rotl, ___function_rotl
DEFINE_ALIAS __rotr, ___function_rotr
DEFINE_ALIAS __lrotl, ___function_lrotl
DEFINE_ALIAS __lrotr, ___function_lrotr
#endif
END