gcc/libstdc++-v3/testsuite/26_numerics
Jonathan Wakely d4c7de7dc9
libstdc++: Implement <stdckdint.h> for C++26 (P3370R1)
This is the second part of the P3370R1 proposal just approved by the
committee in Wrocław. This adds C++ equivalents of the functions added
to C23 by WG14 N2683.

These functions are in the global namespace, but to avoid collisions
with the same functions defined by other standard library
implementations, this change defines them in namespace __gnu_cxx and
then adds them to the global namespace.

libstdc++-v3/ChangeLog:

	* include/Makefile.am: Add stdckdint.h.
	* include/Makefile.in: Regenerate.
	* src/c++23/std.compat.cc.in: Export <stdckdint.h> functions.
	* include/c_compatibility/stdckdint.h: New file.
	* testsuite/26_numerics/stdckdint/1.cc: New test.
	* testsuite/26_numerics/stdckdint/2_neg.cc: New test.

Reviewed-by: Patrick Palka <ppalka@redhat.com>
2025-03-13 14:45:38 +00:00
..
accumulate Update copyright years. 2025-01-02 11:59:57 +01:00
adjacent_difference Update copyright years. 2025-01-02 11:59:57 +01:00
bit Update copyright years. 2025-01-02 11:59:57 +01:00
complex libstdc++: Fix failures in new std::complex test [PR119144] 2025-03-06 16:08:02 +00:00
endian Update copyright years. 2025-01-02 11:59:57 +01:00
exclusive_scan Update copyright years. 2025-01-02 11:59:57 +01:00
gcd Update copyright years. 2025-01-02 11:59:57 +01:00
headers Update copyright years. 2025-01-02 11:59:57 +01:00
inclusive_scan Update copyright years. 2025-01-02 11:59:57 +01:00
inner_product Update copyright years. 2025-01-02 11:59:57 +01:00
iota Update copyright years. 2025-01-02 11:59:57 +01:00
lcm Update copyright years. 2025-01-02 11:59:57 +01:00
lerp Update copyright years. 2025-01-02 11:59:57 +01:00
midpoint Update copyright years. 2025-01-02 11:59:57 +01:00
numbers Update copyright years. 2025-01-02 11:59:57 +01:00
partial_sum Update copyright years. 2025-01-02 11:59:57 +01:00
pstl/numeric_ops libstdc++: Fix parallel std::exclusive_scan [PR108236] 2024-12-03 21:34:26 +00:00
random Update copyright years. 2025-01-02 11:59:57 +01:00
reduce Update copyright years. 2025-01-02 11:59:57 +01:00
saturation libstdc++: Define C++26 saturation arithmetic functions (P0543R3) 2023-11-17 15:28:30 +00:00
slice Update copyright years. 2025-01-02 11:59:57 +01:00
slice_array Update copyright years. 2025-01-02 11:59:57 +01:00
stdckdint libstdc++: Implement <stdckdint.h> for C++26 (P3370R1) 2025-03-13 14:45:38 +00:00
transform_exclusive_scan Update copyright years. 2025-01-02 11:59:57 +01:00
transform_inclusive_scan Update copyright years. 2025-01-02 11:59:57 +01:00
transform_reduce Update copyright years. 2025-01-02 11:59:57 +01:00
valarray Update copyright years. 2025-01-02 11:59:57 +01:00