5 Jul
2022
5 Jul
'22
10:28 a.m.
Jacek Caban (@jacek) commented about dlls/ntdll/large_int.c:
return udivmod(a, b, NULL); }
+ +LONGLONG __regs__allshl( LONGLONG a, unsigned char b ) +{ + return a << b;
It's a preexisting problem, but I think that doing this entirely in assembly would be safer. _allshl is an internal compiler function and a compiler may implement this statement by emitting _allshl function call here. GCC doesn't do that, because it emits calls to libgcc instead, but clang in msvc mode is free to do so. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/375#note_3324