From 750867b7f4a6cf9086e925e89147fb763291b853 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 1 Aug 2011 19:26:39 +0000 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/c_global/cmath | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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,