diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2023-05-11 23:02:18 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-11-11 00:41:08 +0000 |
commit | 0b880466e910b4f1be2ea2d0d9cb9407d24ca299 (patch) | |
tree | 2a4413817177c559000a404f7b06daa2ccc179fe /gcc | |
parent | 08354f5c46c4443c347fd048dd3b1115b14e705d (diff) | |
download | gcc-0b880466e910b4f1be2ea2d0d9cb9407d24ca299.zip gcc-0b880466e910b4f1be2ea2d0d9cb9407d24ca299.tar.gz gcc-0b880466e910b4f1be2ea2d0d9cb9407d24ca299.tar.bz2 |
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 <nathanieloshead@gmail.com>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions