diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-06 13:44:47 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-06 13:44:47 +0000 |
commit | bdc4450d1aa523b8970ebba112055cd50fbd983d (patch) | |
tree | c9426afa8ad359c8da4840b1c09a02c1ed85a138 | |
parent | 680bdc985749f3005acb44e1c7ba493a036ad66f (diff) | |
download | gcc-bdc4450d1aa523b8970ebba112055cd50fbd983d.tar.gz |
2013-10-06 Oleg Endo <olegendo@gcc.gnu.org>
Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/58625
* include/c_global/cmath (signbit): Use __builtin_signbitf and
__builtin_signbitl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203228 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/cmath | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b02593aa505..4a00019bae0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2013-10-06 Oleg Endo <olegendo@gcc.gnu.org> + Paolo Carlini <paolo.carlini@oracle.com> + + PR libstdc++/58625 + * include/c_global/cmath (signbit): Use __builtin_signbitf and + __builtin_signbitl. + 2013-10-03 Tim Shen <timshen91@gmail.com> * include/bits/regex_executor.tcc (_DFSExecutor<>::_M_dfs): Fix wrong diff --git a/libstdc++-v3/include/c_global/cmath b/libstdc++-v3/include/c_global/cmath index b438585eb44..2641118e7b1 100644 --- a/libstdc++-v3/include/c_global/cmath +++ b/libstdc++-v3/include/c_global/cmath @@ -650,9 +650,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION 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 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION 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, |