diff options
author | mikhnenko <mikhnenko@yandex-team.com> | 2024-03-27 10:35:27 +0300 |
---|---|---|
committer | mikhnenko <mikhnenko@yandex-team.com> | 2024-03-27 10:47:39 +0300 |
commit | 9b902baa4a858f2176c82aa0b20f88232f0da0d8 (patch) | |
tree | 7165a551c2244c4b3c28479ac3a3f6d62346ec89 /contrib/libs/cxxsupp/libcxx/include/cmath | |
parent | a1c989e67e438005fa0c34ed0e910536c8941862 (diff) | |
download | ydb-9b902baa4a858f2176c82aa0b20f88232f0da0d8.tar.gz |
Update libcxx to 10 Oct 2023 dc129d6f715cf83a2072fc8de8b4e4c70bca6935
97ce40d276e44357a49b7a945af841896126dca8
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/cmath')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/cmath | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/cmath b/contrib/libs/cxxsupp/libcxx/include/cmath index e815b3a4ef..12bcd65b4a 100644 --- a/contrib/libs/cxxsupp/libcxx/include/cmath +++ b/contrib/libs/cxxsupp/libcxx/include/cmath @@ -313,6 +313,7 @@ constexpr long double lerp(long double a, long double b, long double t) noexcept #include <__type_traits/is_same.h> #include <__type_traits/promote.h> #include <__type_traits/remove_cv.h> +#include <limits> #include <version> #include <math.h> @@ -568,9 +569,9 @@ hypot(_A1 __lcpp_x, _A2 __lcpp_y, _A3 __lcpp_z) _NOEXCEPT } #endif -template <class _A1> +template <class _A1, __enable_if_t<is_floating_point<_A1>::value, int> = 0> _LIBCPP_INLINE_VISIBILITY -_LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type +_LIBCPP_CONSTEXPR bool __constexpr_isnan(_A1 __lcpp_x) _NOEXCEPT { #if __has_builtin(__builtin_isnan) @@ -580,17 +581,17 @@ __constexpr_isnan(_A1 __lcpp_x) _NOEXCEPT #endif } -template <class _A1> +template <class _A1, __enable_if_t<!is_floating_point<_A1>::value, int> = 0> _LIBCPP_INLINE_VISIBILITY -_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type +_LIBCPP_CONSTEXPR bool __constexpr_isnan(_A1 __lcpp_x) _NOEXCEPT { return std::isnan(__lcpp_x); } -template <class _A1> +template <class _A1, __enable_if_t<is_floating_point<_A1>::value, int> = 0> _LIBCPP_INLINE_VISIBILITY -_LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type +_LIBCPP_CONSTEXPR bool __constexpr_isinf(_A1 __lcpp_x) _NOEXCEPT { #if __has_builtin(__builtin_isinf) @@ -600,17 +601,17 @@ __constexpr_isinf(_A1 __lcpp_x) _NOEXCEPT #endif } -template <class _A1> +template <class _A1, __enable_if_t<!is_floating_point<_A1>::value, int> = 0> _LIBCPP_INLINE_VISIBILITY -_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type +_LIBCPP_CONSTEXPR bool __constexpr_isinf(_A1 __lcpp_x) _NOEXCEPT { return std::isinf(__lcpp_x); } -template <class _A1> +template <class _A1, __enable_if_t<is_floating_point<_A1>::value, int> = 0> _LIBCPP_INLINE_VISIBILITY -_LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type +_LIBCPP_CONSTEXPR bool __constexpr_isfinite(_A1 __lcpp_x) _NOEXCEPT { #if __has_builtin(__builtin_isfinite) @@ -620,9 +621,9 @@ __constexpr_isfinite(_A1 __lcpp_x) _NOEXCEPT #endif } -template <class _A1> +template <class _A1, __enable_if_t<!is_floating_point<_A1>::value, int> = 0> _LIBCPP_INLINE_VISIBILITY -_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type +_LIBCPP_CONSTEXPR bool __constexpr_isfinite(_A1 __lcpp_x) _NOEXCEPT { return __builtin_isfinite(__lcpp_x); @@ -641,10 +642,9 @@ __constexpr_copysign(long double __x, long double __y) _NOEXCEPT { return __builtin_copysignl(__x, __y); } -template <class _A1, class _A2> +template <class _A1, class _A2, __enable_if_t<std::is_arithmetic<_A1>::value && std::is_arithmetic<_A2>::value, int> = 0> _LIBCPP_CONSTEXPR inline _LIBCPP_HIDE_FROM_ABI - typename std::__enable_if_t<std::is_arithmetic<_A1>::value && std::is_arithmetic<_A2>::value, - std::__promote<_A1, _A2> >::type + typename __promote<_A1, _A2>::type __constexpr_copysign(_A1 __x, _A2 __y) _NOEXCEPT { typedef typename std::__promote<_A1, _A2>::type __result_type; static_assert((!(std::_IsSame<_A1, __result_type>::value && std::_IsSame<_A2, __result_type>::value)), ""); |