Commit 750867b7 by Paolo Carlini Committed by Paolo Carlini

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
parent 0d5e496f
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> 2011-07-31 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/49925 PR libstdc++/49925
......
...@@ -547,18 +547,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -547,18 +547,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
isfinite(_Tp __x) isfinite(_Tp __x)
{ return true; } { return true; }
// Workaround the isinf issue discussed in PR 49813.
constexpr bool constexpr bool
isinf(float __x) isinf(float __x)
{ return fpclassify(__x) == FP_INFINITE; } { return __builtin_isinf(__x); }
constexpr bool constexpr bool
isinf(double __x) isinf(double __x)
{ return fpclassify(__x) == FP_INFINITE; } { return __builtin_isinf(__x); }
constexpr bool constexpr bool
isinf(long double __x) isinf(long double __x)
{ return fpclassify(__x) == FP_INFINITE; } { return __builtin_isinf(__x); }
template<typename _Tp> template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment