在 2018/7/2 18:58, Carl Kleffner 写道:
There is also a changlog from 2009:

2009-04-20 Ozkan Sezer <seze...@gmail.com>
FR/2619978:
* mingw-w64-crt/gdtoa/strtof.c, mingw-w64-crt/gdtoa/strtopx.c: Prepend
the strtof and strtold symbols with '__mingw_' to provide both of strtof
and strtold which rely on msvcrt, and __mingw_strtof and __mingw_strtold
which rely on the internal gdtoa library.
* mingw-w64-headers/include/stdlib.h: Properly provide the prototypes
for __mingw_strtof and __mingw_strtold.

It seems that __mingw_strtold or its alias __strtold should be used as a
replacement of strtold (MSVCRT).



As we speak, our `strtold()` is implemented in a rather complex and old manner in 'mingw-w64-crt/misc/strtold.c'. The MSVCRT version is not an option because on MSVC `long double` consists of 64 bits while on GCC it consists of 80 bits with 16 (on x86) or 48 (on x64) additional bits of padding.

So, there could be a bug in that implementation... I don't have much time to look into it at the moment. If you can find the bug, feel free to contribute a patch. :>

--
Best regards,
LH_Mouse


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to