[PATCH 0/3] MR375: ntdll: Fixes for runtime 64-bit shift functions.

Jacek Caban (@jacek) wine at gitlab.winehq.org
Tue Jul 5 05:28:18 CDT 2022


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



More information about the wine-devel mailing list