diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-01-21 15:33:13 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-01-23 22:47:00 +0000 |
commit | 416b6fc7483b1b4daaab2dc25cc9a916178ba376 (patch) | |
tree | 654a55d6cdca3498c0ff8dc640d667ddb106b3a5 /gcc | |
parent | 084680db9af077ca37c5523a58b6c11e090e7335 (diff) | |
download | gcc-416b6fc7483b1b4daaab2dc25cc9a916178ba376.zip gcc-416b6fc7483b1b4daaab2dc25cc9a916178ba376.tar.gz gcc-416b6fc7483b1b4daaab2dc25cc9a916178ba376.tar.bz2 |
libstdc++: Use fast_float for long double if it uses binary64 format
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 is implemented in
terms of strtod, strtof or strtold.
(buffer_resource, valid_fmt, find_end_of_float, pattern)
(from_chars_impl, make_result, reserve_string): Do not define
unless USE_STRTOD_FOR_FROM_CHARS is defined.
(from_chars): Define when at least one of USE_LIB_FAST_FLOAT and
USE_STRTOD_FOR_FROM_CHARS is defined, instead of
_GLIBCXX_HAVE_USELOCALE. Use fast_float for long double when it
is binary64.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions