From: Paolo Carlini Date: Mon, 1 Aug 2011 19:26:39 +0000 (+0000) Subject: re PR c++/49813 ([C++0x] sinh vs asinh vs constexpr) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=750867b7f4a6cf9086e925e89147fb763291b853;p=gcc.git re PR c++/49813 ([C++0x] sinh vs asinh vs constexpr) 2011-08-01 Paolo Carlini PR c++/49813 * include/c_global/cmath (isinf): Remove workaround. From-SVN: r177070 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c8ac5d10ea7..3a832f7ddec 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-08-01 Paolo Carlini + + PR c++/49813 + * include/c_global/cmath (isinf): Remove workaround. + 2011-07-31 Paolo Carlini PR libstdc++/49925 diff --git a/libstdc++-v3/include/c_global/cmath b/libstdc++-v3/include/c_global/cmath index 4a75d0e613b..1eeded8efe1 100644 --- a/libstdc++-v3/include/c_global/cmath +++ b/libstdc++-v3/include/c_global/cmath @@ -547,18 +547,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION isfinite(_Tp __x) { return true; } - // Workaround the isinf issue discussed in PR 49813. constexpr bool isinf(float __x) - { return fpclassify(__x) == FP_INFINITE; } + { return __builtin_isinf(__x); } constexpr bool isinf(double __x) - { return fpclassify(__x) == FP_INFINITE; } + { return __builtin_isinf(__x); } constexpr bool isinf(long double __x) - { return fpclassify(__x) == FP_INFINITE; } + { return __builtin_isinf(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,