diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2011-08-01 19:26:39 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-08-01 19:26:39 +0000 |
commit | 750867b7f4a6cf9086e925e89147fb763291b853 (patch) | |
tree | 09f1b9bdce94a733ced7c7de15cdbbf1fba5d61e /libstdc++-v3 | |
parent | 0d5e496f46c6bd22709167532f6ca45b6ae98477 (diff) | |
download | gcc-750867b7f4a6cf9086e925e89147fb763291b853.zip gcc-750867b7f4a6cf9086e925e89147fb763291b853.tar.gz gcc-750867b7f4a6cf9086e925e89147fb763291b853.tar.bz2 |
re PR c++/49813 ([C++0x] sinh vs asinh vs constexpr)
2011-08-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/49813
* include/c_global/cmath (isinf): Remove workaround.
From-SVN: r177070
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | 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 c8ac5d1..3a832f7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-08-01 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/49813 + * include/c_global/cmath (isinf): Remove workaround. + 2011-07-31 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/49925 diff --git a/libstdc++-v3/include/c_global/cmath b/libstdc++-v3/include/c_global/cmath index 4a75d0e..1eeded8 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<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, |