Hi,
tested x86_64-linux, committed to mainline.
Paolo.
///////////////////////
2013-10-06 Oleg Endo <[email protected]>
Paolo Carlini <[email protected]>
PR libstdc++/58625
* include/c_global/cmath (signbit): Use __builtin_signbitf and
__builtin_signbitl.
Index: include/c_global/cmath
===================================================================
--- include/c_global/cmath (revision 203227)
+++ include/c_global/cmath (working copy)
@@ -650,9 +650,10 @@
isnormal(_Tp __x)
{ return __x != 0 ? true : false; }
+ // The front-end doesn't provide a type generic builtin (libstdc++/58625).
constexpr bool
signbit(float __x)
- { return __builtin_signbit(__x); }
+ { return __builtin_signbitf(__x); }
constexpr bool
signbit(double __x)
@@ -660,7 +661,7 @@
constexpr bool
signbit(long double __x)
- { return __builtin_signbit(__x); }
+ { return __builtin_signbitl(__x); }
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,