diff --git a/libcxx/include/math.h b/libcxx/include/math.h --- a/libcxx/include/math.h +++ b/libcxx/include/math.h @@ -316,6 +316,7 @@ # ifdef signbit # undef signbit +# endif // signbit template inline _LIBCPP_HIDE_FROM_ABI typename std::enable_if::value, bool>::type @@ -337,34 +338,11 @@ return false; } -# elif defined(_LIBCPP_MSVCRT) - -template -inline _LIBCPP_HIDE_FROM_ABI typename std::enable_if::value, bool>::type -signbit(_A1 __x) _NOEXCEPT { - return ::signbit(__x); -} - -template -inline _LIBCPP_HIDE_FROM_ABI - typename std::enable_if< std::is_integral<_A1>::value && std::is_signed<_A1>::value, bool>::type - signbit(_A1 __x) _NOEXCEPT { - return __x < 0; -} - -template -inline _LIBCPP_HIDE_FROM_ABI - typename std::enable_if< std::is_integral<_A1>::value && !std::is_signed<_A1>::value, bool>::type - signbit(_A1) _NOEXCEPT { - return false; -} - -# endif // signbit - // fpclassify # ifdef fpclassify # undef fpclassify +# endif // fpclassify template inline _LIBCPP_HIDE_FROM_ABI typename std::enable_if::value, int>::type @@ -378,22 +356,6 @@ return __x == 0 ? FP_ZERO : FP_NORMAL; } -# elif defined(_LIBCPP_MSVCRT) - -template -inline _LIBCPP_HIDE_FROM_ABI typename std::enable_if::value, bool>::type -fpclassify(_A1 __x) _NOEXCEPT { - return ::fpclassify(__x); -} - -template -inline _LIBCPP_HIDE_FROM_ABI typename std::enable_if::value, int>::type -fpclassify(_A1 __x) _NOEXCEPT { - return __x == 0 ? FP_ZERO : FP_NORMAL; -} - -# endif // fpclassify - // isfinite # ifdef isfinite