[PATCH] msvcrt: Provide pow2 implementation in static library for msvcrt versions that don't provide it.

Jacek Caban jacek at codeweavers.com
Tue Nov 12 09:07:03 CST 2019


Signed-off-by: Jacek Caban <jacek at codeweavers.com>
---

This is needed because compiler may optimize pow(2,x) to exp2(x) and 
clang does that in out msvcp code. This also needs -fno-builtin because 
otherwise clang will optimize our forwarding implementation back to exp2.

Long term, when we will have those functions implemented in msvcrt 
without libc dependency anyway, we will probably want to provide the 
actual implementation in static library as well. I think it's better to 
revisit that later, after moving msvcrt to PE file.

  dlls/msvcr100/Makefile.in | 2 ++
  dlls/msvcr110/Makefile.in | 2 ++
  dlls/msvcr120/Makefile.in | 2 ++
  dlls/msvcr70/Makefile.in  | 2 ++
  dlls/msvcr71/Makefile.in  | 2 ++
  dlls/msvcr80/Makefile.in  | 2 ++
  dlls/msvcr90/Makefile.in  | 2 ++
  dlls/msvcrt/Makefile.in   | 2 ++
  dlls/msvcrt/mathf.c       | 4 ++++
  dlls/ucrtbase/Makefile.in | 2 ++
  10 files changed, 22 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-msvcrt-Provide-pow2-implementation-in-static-library-f.txt
Type: text/x-patch
Size: 3326 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20191112/723b8733/attachment-0001.bin>


More information about the wine-devel mailing list