The master branch has been updated by Jonathan Wakely <email address hidden>:
https://gcc.gnu.org/g:0b880466e910b4f1be2ea2d0d9cb9407d24ca299
commit r14-5341-g0b880466e910b4f1be2ea2d0d9cb9407d24ca299 Author: Nathaniel Shead <email address hidden> Date: Thu May 11 23:02:18 2023 +0100
libstdc++: Add missing functions to <cmath> [PR79700]
This patch adds the -f and -l variants of the C99 <math.h> functions to <cmath> under namespace std (so std::sqrtf, std::fabsl, etc.) for C++11 and up.
libstdc++-v3/ChangeLog:
PR libstdc++/79700 * include/c_global/cmath (acosf, acosl, asinf, asinl, atanf) (atanl, atan2f, atan2l, ceilf, ceill, cosf, cosl, coshf, coshl) (expf, expl, fabsf, fabsl, floorf, floorl, fmodf, fmodl, frexpf) (frexpl, ldexpf, ldexpl, logf, logl, log10f, log10l, modff) (modfl, powf, powl, sinf, sinl, sinhf, sinhl, sqrtf, sqrtl, tanf) (tanl, tanhf, tanhl): Add using-declarations in namespace std. * testsuite/26_numerics/headers/cmath/equivalent_functions.cc: New test. * testsuite/26_numerics/headers/cmath/functions_std_c++17.cc: Add checks for existence of above names.
Signed-off-by: Nathaniel Shead <email address hidden> Reviewed-by: Jonathan Wakely <email address hidden>
The master branch has been updated by Jonathan Wakely <email address hidden>:
https:/ /gcc.gnu. org/g:0b880466e 910b4f1be2ea2d0 d9cb9407d24ca29 9
commit r14-5341- g0b880466e910b4 f1be2ea2d0d9cb9 407d24ca299
Author: Nathaniel Shead <email address hidden>
Date: Thu May 11 23:02:18 2023 +0100
libstdc++: Add missing functions to <cmath> [PR79700]
This patch adds the -f and -l variants of the C99 <math.h> functions to
<cmath> under namespace std (so std::sqrtf, std::fabsl, etc.) for C++11
and up.
libstdc+ +-v3/ChangeLog:
PR libstdc++/79700 c_global/ cmath (acosf, acosl, asinf, asinl, atanf)
(frexpl, ldexpf, ldexpl, logf, logl, log10f, log10l, modff) 26_numerics/ headers/ cmath/equivalen t_functions. cc: 26_numerics/ headers/ cmath/functions _std_c+ +17.cc:
* include/
(atanl, atan2f, atan2l, ceilf, ceill, cosf, cosl, coshf, coshl)
(expf, expl, fabsf, fabsl, floorf, floorl, fmodf, fmodl, frexpf)
(modfl, powf, powl, sinf, sinl, sinhf, sinhl, sqrtf, sqrtl, tanf)
(tanl, tanhf, tanhl): Add using-declarations in namespace std.
* testsuite/
New test.
* testsuite/
Add checks for existence of above names.
Signed-off-by: Nathaniel Shead <email address hidden>
Reviewed-by: Jonathan Wakely <email address hidden>