r273940 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Jul 31 16:40:00 GMT 2019


Author: redi
Date: Wed Jul 31 16:40:39 2019
New Revision: 273940

URL: https://gcc.gnu.org/viewcvs?rev=273940&root=gcc&view=rev
Log:
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.

Added:
    trunk/libstdc++-v3/include/std/numbers
    trunk/libstdc++-v3/testsuite/26_numerics/numbers/
    trunk/libstdc++-v3/testsuite/26_numerics/numbers/1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/numbers/2.cc
    trunk/libstdc++-v3/testsuite/26_numerics/numbers/3.cc
    trunk/libstdc++-v3/testsuite/26_numerics/numbers/nonfloat_neg.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/Makefile.am
    trunk/libstdc++-v3/include/Makefile.in
    trunk/libstdc++-v3/include/precompiled/stdc++.h
    trunk/libstdc++-v3/include/std/version



More information about the Libstdc++-cvs mailing list