Implement "P0631R4 Math Constants" for C++20
authorJonathan Wakely <jwakely@redhat.com>
Wed, 31 Jul 2019 16:40:39 +0000 (17:40 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 31 Jul 2019 16:40:39 +0000 (17:40 +0100)
commit960b9ae05ac46f51370c30d30575e7a7fe6a3a99
treef86baa42ce62743f6c9768e211ae81ec27975b32
parent27e6c1f4069316dcc2d0abc91fe36e36947c099e
Implement "P0631R4 Math Constants" for C++20

The values of the constants are taken from Glibc where the equivalent
constant exists, or by rounding the actual constant to the same number
of digits as the Glibc constants have.

P0631R4 Math Constants
* include/Makefile.am: Add new header.
* include/Makefile.in: Regenerate.
* include/precompiled/stdc++.h: Include new header.
* include/std/numbers: New header.
* include/std/version (__cpp_lib_math_constants): Define.
* testsuite/26_numerics/numbers/1.cc: New test.
* testsuite/26_numerics/numbers/2.cc: New test.
* testsuite/26_numerics/numbers/3.cc: New test.
* testsuite/26_numerics/numbers/nonfloat_neg.cc: New test.

From-SVN: r273940
libstdc++-v3/ChangeLog
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/precompiled/stdc++.h
libstdc++-v3/include/std/numbers [new file with mode: 0644]
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/26_numerics/numbers/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/26_numerics/numbers/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/26_numerics/numbers/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/26_numerics/numbers/nonfloat_neg.cc [new file with mode: 0644]