aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/c_std/std_cmath.h
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2005-01-21 00:16:39 +0000
committerDaniel Berlin <dberlin@dberlin.org>2005-01-21 00:16:39 +0000
commit0f1b6f7959bdf220415f46a7c9dea21443a6402d (patch)
tree8b2151561f08b7048f37e3cb28ca9a1a6285d17a /libstdc++-v3/include/c_std/std_cmath.h
parent86f4dc76d56023c4cd99c9b075f7c8372b2e0a81 (diff)
Merge from mainline
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/structure-aliasing-branch@93997 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_std/std_cmath.h')
-rw-r--r--libstdc++-v3/include/c_std/std_cmath.h50
1 files changed, 16 insertions, 34 deletions
diff --git a/libstdc++-v3/include/c_std/std_cmath.h b/libstdc++-v3/include/c_std/std_cmath.h
index 66866b2cc3a..50ee582c7a3 100644
--- a/libstdc++-v3/include/c_std/std_cmath.h
+++ b/libstdc++-v3/include/c_std/std_cmath.h
@@ -1,6 +1,6 @@
// -*- C++ -*- C forwarding header.
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -510,80 +510,62 @@ namespace __gnu_cxx
#undef islessequal
#undef islessgreater
#undef isunordered
-#endif /* _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC */
-#endif
-#if _GLIBCXX_USE_C99_MATH
-#if !_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC
-namespace __gnu_cxx
+namespace std
{
template<typename _Tp>
int
- fpclassify(_Tp __f) { return __capture_fpclassify(__f); }
+ fpclassify(_Tp __f) { return __gnu_cxx::__capture_fpclassify(__f); }
template<typename _Tp>
int
- isfinite(_Tp __f) { return __capture_isfinite(__f); }
+ isfinite(_Tp __f) { return __gnu_cxx::__capture_isfinite(__f); }
template<typename _Tp>
int
- isinf(_Tp __f) { return __capture_isinf(__f); }
+ isinf(_Tp __f) { return __gnu_cxx::__capture_isinf(__f); }
template<typename _Tp>
int
- isnan(_Tp __f) { return __capture_isnan(__f); }
+ isnan(_Tp __f) { return __gnu_cxx::__capture_isnan(__f); }
template<typename _Tp>
int
- isnormal(_Tp __f) { return __capture_isnormal(__f); }
+ isnormal(_Tp __f) { return __gnu_cxx::__capture_isnormal(__f); }
template<typename _Tp>
int
- signbit(_Tp __f) { return __capture_signbit(__f); }
+ signbit(_Tp __f) { return __gnu_cxx::__capture_signbit(__f); }
template<typename _Tp>
int
- isgreater(_Tp __f1, _Tp __f2) { return __capture_isgreater(__f1, __f2); }
+ isgreater(_Tp __f1, _Tp __f2)
+ { return __gnu_cxx::__capture_isgreater(__f1, __f2); }
template<typename _Tp>
int
isgreaterequal(_Tp __f1, _Tp __f2)
- { return __capture_isgreaterequal(__f1, __f2); }
+ { return __gnu_cxx::__capture_isgreaterequal(__f1, __f2); }
template<typename _Tp>
int
- isless(_Tp __f1, _Tp __f2) { return __capture_isless(__f1, __f2); }
+ isless(_Tp __f1, _Tp __f2)
+ { return __gnu_cxx::__capture_isless(__f1, __f2); }
template<typename _Tp>
int
islessequal(_Tp __f1, _Tp __f2)
- { return __capture_islessequal(__f1, __f2); }
+ { return __gnu_cxx::__capture_islessequal(__f1, __f2); }
template<typename _Tp>
int
islessgreater(_Tp __f1, _Tp __f2)
- { return __capture_islessgreater(__f1, __f2); }
+ { return __gnu_cxx::__capture_islessgreater(__f1, __f2); }
template<typename _Tp>
int
isunordered(_Tp __f1, _Tp __f2)
- { return __capture_isunordered(__f1, __f2); }
-}
-
-namespace std
-{
- using __gnu_cxx::fpclassify;
- using __gnu_cxx::isfinite;
- using __gnu_cxx::isinf;
- using __gnu_cxx::isnan;
- using __gnu_cxx::isnormal;
- using __gnu_cxx::signbit;
- using __gnu_cxx::isgreater;
- using __gnu_cxx::isgreaterequal;
- using __gnu_cxx::isless;
- using __gnu_cxx::islessequal;
- using __gnu_cxx::islessgreater;
- using __gnu_cxx::isunordered;
+ { return __gnu_cxx::__capture_isunordered(__f1, __f2); }
}
#endif /* _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC */
#endif