mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-02 02:32:27 +00:00
Release Cosmopolitan v3.6.0
This release is an atomic upgrade to GCC 14.1.0 with C23 and C++23
This commit is contained in:
parent
62ace3623a
commit
5660ec4741
1585 changed files with 117353 additions and 271644 deletions
52
third_party/libcxx/numeric
vendored
52
third_party/libcxx/numeric
vendored
|
@ -140,37 +140,67 @@ template<class T>
|
|||
template<class T>
|
||||
constexpr T* midpoint(T* a, T* b); // C++20
|
||||
|
||||
// [numeric.sat], saturation arithmetic
|
||||
template<class T>
|
||||
constexpr T add_sat(T x, T y) noexcept; // freestanding, Since C++26
|
||||
template<class T>
|
||||
constexpr T sub_sat(T x, T y) noexcept; // freestanding, Since C++26
|
||||
template<class T>
|
||||
constexpr T mul_sat(T x, T y) noexcept; // freestanding, Since C++26
|
||||
template<class T>
|
||||
constexpr T div_sat(T x, T y) noexcept; // freestanding, Since C++26
|
||||
template<class T, class U>
|
||||
constexpr T saturate_cast(U x) noexcept; // freestanding, Since C++26
|
||||
|
||||
} // std
|
||||
|
||||
*/
|
||||
|
||||
#include <__assert> // all public C++ headers provide the assertion handler
|
||||
#include <__config>
|
||||
#include <cmath> // for isnormal
|
||||
#include <version>
|
||||
|
||||
#include <__numeric/accumulate.h>
|
||||
#include <__numeric/adjacent_difference.h>
|
||||
#include <__numeric/exclusive_scan.h>
|
||||
#include <__numeric/gcd_lcm.h>
|
||||
#include <__numeric/inclusive_scan.h>
|
||||
#include <__numeric/inner_product.h>
|
||||
#include <__numeric/iota.h>
|
||||
#include <__numeric/midpoint.h>
|
||||
#include <__numeric/partial_sum.h>
|
||||
#include <__numeric/reduce.h>
|
||||
#include <__numeric/transform_exclusive_scan.h>
|
||||
#include <__numeric/transform_inclusive_scan.h>
|
||||
#include <__numeric/transform_reduce.h>
|
||||
|
||||
#if _LIBCPP_STD_VER >= 17
|
||||
# include <__numeric/exclusive_scan.h>
|
||||
# include <__numeric/gcd_lcm.h>
|
||||
# include <__numeric/inclusive_scan.h>
|
||||
# include <__numeric/pstl.h>
|
||||
# include <__numeric/reduce.h>
|
||||
# include <__numeric/transform_exclusive_scan.h>
|
||||
# include <__numeric/transform_inclusive_scan.h>
|
||||
# include <__numeric/transform_reduce.h>
|
||||
#endif
|
||||
|
||||
#if _LIBCPP_STD_VER >= 20
|
||||
# include <__numeric/midpoint.h>
|
||||
# include <__numeric/saturation_arithmetic.h>
|
||||
#endif
|
||||
|
||||
#include <version>
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 14
|
||||
# include <initializer_list>
|
||||
# include <limits>
|
||||
#endif
|
||||
|
||||
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
|
||||
# include <climits>
|
||||
# include <cmath>
|
||||
# include <concepts>
|
||||
# include <cstdint>
|
||||
# include <execution>
|
||||
# include <functional>
|
||||
# include <iterator>
|
||||
# include <new>
|
||||
# include <optional>
|
||||
# include <type_traits>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue