6 Jul
2022
6 Jul
'22
3:50 p.m.
Jinoh Kang (@iamahuman) commented about dlls/ntdll/large_int.c:
+ /****************************************************************************** * _allshl (NTDLL.@) - * - * Shift a 64 bit integer to the left. - * - * PARAMS - * a [I] Initial number. - * b [I] Number to shift a by to the left. - * - * RETURNS - * The left-shifted value. */ -LONGLONG WINAPI _allshl( LONGLONG a, LONG b ) +__ASM_GLOBAL_FUNC( _allshl, + "xchgl (%esp),%ecx\n\t" Maybe a nit, and this pattern also resides in other preëxisting code already, but do we _really_ want to use a full memory barrier in such cases?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/375#note_3467