Re: [committed] libstdc++: Use fast_float for long double if it uses binary64 format

2022-01-24 Thread Jonathan Wakely via Gcc-patches
On Mon, 24 Jan 2022 at 17:42, Patrick Palka via Libstdc++ wrote: > > On Sun, Jan 23, 2022 at 5:53 PM Jonathan Wakely via Gcc-patches > wrote: > > > > Tested powerpc64le-linux, pushed to trunk. > > > > > > We can use the new from_chars implementation when long double and double > > have the same r

Re: [committed] libstdc++: Use fast_float for long double if it uses binary64 format

2022-01-24 Thread Patrick Palka via Gcc-patches
On Sun, Jan 23, 2022 at 5:53 PM Jonathan Wakely via Gcc-patches wrote: > > Tested powerpc64le-linux, pushed to trunk. > > > We can use the new from_chars implementation when long double and double > have the same representation. I suppose we should also update to sync the conditions that define

[committed] libstdc++: Use fast_float for long double if it uses binary64 format

2022-01-23 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. We can use the new from_chars implementation when long double and double have the same representation. libstdc++-v3/ChangeLog: * src/c++17/floating_from_chars.cc (USE_STRTOD_FOR_FROM_CHARS): Define macro for case where std::from_chars i