File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 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
6660template <class _A1 , __enable_if_t <is_integral<_A1>::value, int > = 0 >
You can’t perform that action at this time.
0 commit comments