aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2022-10-31 16:47:23 +0100
committerJakub Jelinek <jakub@redhat.com>2022-10-31 16:49:04 +0100
commitcbf56503d5e2bbafb06a507cb37d30805a1013a0 (patch)
tree3d61e1c42c25c298261165a927f04cf713fe3191 /gcc
parent1b07d374765dd811cbb8b3e05764aef3b1754ff2 (diff)
downloadgcc-cbf56503d5e2bbafb06a507cb37d30805a1013a0.zip
gcc-cbf56503d5e2bbafb06a507cb37d30805a1013a0.tar.gz
gcc-cbf56503d5e2bbafb06a507cb37d30805a1013a0.tar.bz2
libstdc++: Small extended float support tweaks
The following patch 1) enables the std::float128_t overloads for x86 with glibc 2.26+ 2) makes std::nextafter(std::float16_t, std::float16_t) and std::nextafter(std::bfloat16_t, std::bfloat16_t) constexpr 3) adds (small) testsuite coverage for that 2022-10-21 Jakub Jelinek <jakub@redhat.com> * config/os/gnu-linux/os_defines.h (_GLIBCXX_HAVE_FLOAT128_MATH): Uncomment. * include/c_global/cmath (nextafter(_Float16, _Float16)): Make it constexpr. If std::__is_constant_evaluated() call __builtin_nextafterf16. (nextafter(__gnu_cxx::__bfloat16_t, __gnu_cxx::__bfloat16_t)): Similarly but call __builtin_nextafterf16b. * testsuite/26_numerics/headers/cmath/nextafter_c++23.cc (test): Add static assertions to test constexpr nextafter.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions