[PATCH] Implement "P0631R4 Math Constants" for C++20

Marc Glisse marc.glisse@inria.fr
Wed Jul 31 17:07:00 GMT 2019


On Wed, 31 Jul 2019, Jonathan Wakely wrote:

> 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.

How does it behave with __float128? I think that with -std=gnu++2a, it 
counts as a floating point type, but the constant first becomes a long 
double and thus loses precision.

-- 
Marc Glisse



More information about the Libstdc++ mailing list