summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/tr1/cmath
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-28 04:57:34 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-28 04:57:34 +0000
commite7206175a0c8d920040676e96ec750fa6493abf7 (patch)
tree81547eb1eadbf4669dec412581227155f1ad5c83 /libstdc++-v3/include/tr1/cmath
parentc5f4a9c4f7cbfabf470fdee2cc69e2371558bc1c (diff)
downloadppe42-gcc-e7206175a0c8d920040676e96ec750fa6493abf7.tar.gz
ppe42-gcc-e7206175a0c8d920040676e96ec750fa6493abf7.zip
2006-07-27 Benjamin Kosnik <bkoz@wells.artheist.org>
PR libstdc++/19664 round 3 * include/Makefile.am (tr1_headers): Add hashtable_policy.h. * include/Makefile.in: Regenerate. * include/tr1/hashtable: Move policy classes into... * include/tr1/hashtable_policy.h: ... this. New. * src/globals_locale.cc: Move contents.... * src/locale_init.cc: ... to here, put in anonymous namespace. * src/Makefile.am: Remove globals_locale.cc. * src/Makefile.in: Regenerate. * src/locale.cc: Convert __gnu_internal to anonymous namespace. * src/debug.cc: Same. * src/ext-inst.cc: Same. * src/mt_allocator.cc: Same. * src/pool_allocator.cc: Same. * include/tr1/random: Convert std::tr1::_Private to anonymous namespace. * include/tr1/random.tcc: Same. * include/tr1/hashtable: Move ::Internal to std::tr1::detail and enclose bits that can actually be internal in in anonymous namespace. * include/tr1/unordered_set: Adjust explicit qualifications for namespace changes. * include/tr1/unordered_map: Same. * include/tr1/cmath: Convert __gnu_internal to nested detail namespace. * include/bits/cpp_type_traits.h: Move __type_type into anonymous namespace. * include/ext/rope: Change _Rope_constants to anonymous namespace. * include/ext/ropeimpl.h: Same. * src/ext-inst.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115790 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/tr1/cmath')
-rw-r--r--libstdc++-v3/include/tr1/cmath33
1 files changed, 16 insertions, 17 deletions
diff --git a/libstdc++-v3/include/tr1/cmath b/libstdc++-v3/include/tr1/cmath
index 74b407127fb..22c9f2e44b4 100644
--- a/libstdc++-v3/include/tr1/cmath
+++ b/libstdc++-v3/include/tr1/cmath
@@ -146,21 +146,6 @@
#undef truncf
#undef truncl
-// Workaround for c++/21682.
-namespace __gnu_internal
-{
- template<typename _Tp, typename _Up>
- inline typename
- std::__enable_if<typename std::tr1::__promote_2<_Tp, _Up>::__type,
- (std::__is_floating<_Tp>::__value
- || std::__is_floating<_Up>::__value)>::__type
- atan2(_Tp __y, _Up __x)
- {
- typedef typename std::tr1::__promote_2<_Tp, _Up>::__type __type;
- return std::atan2(__type(__y), __type(__x));
- }
-}
-
#endif
// namespace std::tr1
@@ -381,10 +366,24 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1)
}
using std::atan;
- using std::atan2;
// Workaround for c++/21682.
- using __gnu_internal::atan2;
+ namespace detail
+ {
+ template<typename _Tp, typename _Up>
+ inline typename
+ std::__enable_if<typename std::tr1::__promote_2<_Tp, _Up>::__type,
+ (std::__is_floating<_Tp>::__value
+ || std::__is_floating<_Up>::__value)>::__type
+ atan2(_Tp __y, _Up __x)
+ {
+ typedef typename std::tr1::__promote_2<_Tp, _Up>::__type __type;
+ return std::atan2(__type(__y), __type(__x));
+ }
+ } // namespace detail
+
+ using std::atan2;
+ using detail::atan2;
inline float
atanh(float __x)
OpenPOWER on IntegriCloud