Skip to content

Commit dd883fb

Browse files
committed
[libc++] Remove one of the std::signbit overloads
1 parent bd64f31 commit dd883fb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

libcxx/include/__math/traits.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <__type_traits/enable_if.h>
1414
#include <__type_traits/is_arithmetic.h>
1515
#include <__type_traits/is_integral.h>
16-
#include <__type_traits/is_signed.h>
1716
#include <__type_traits/promote.h>
1817

1918
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -51,16 +50,11 @@ template <class = void>
5150
return __builtin_signbit(__x);
5251
}
5352

54-
template <class _A1, __enable_if_t<is_integral<_A1>::value && is_signed<_A1>::value, int> = 0>
53+
template <class _A1, __enable_if_t<is_integral<_A1>::value, int> = 0>
5554
[[__nodiscard__]] inline _LIBCPP_SIGNBIT_CONSTEXPR _LIBCPP_HIDE_FROM_ABI bool signbit(_A1 __x) _NOEXCEPT {
5655
return __x < 0;
5756
}
5857

59-
template <class _A1, __enable_if_t<is_integral<_A1>::value && !is_signed<_A1>::value, int> = 0>
60-
[[__nodiscard__]] inline _LIBCPP_SIGNBIT_CONSTEXPR _LIBCPP_HIDE_FROM_ABI bool signbit(_A1) _NOEXCEPT {
61-
return false;
62-
}
63-
6458
// isfinite
6559

6660
template <class _A1, __enable_if_t<is_integral<_A1>::value, int> = 0>

0 commit comments

Comments
 (0)