diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2005-09-01 20:46:47 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2005-09-01 20:46:47 +0000 |
commit | d42a11e1222382954320f2234d1d3edb3742a954 (patch) | |
tree | b0c5d434d98b67e26652730ad0126c3144eb6ca1 /libstdc++-v3 | |
parent | 868057591bdfd7240ad49c388933e04e67b938cd (diff) | |
download | gcc-d42a11e1222382954320f2234d1d3edb3742a954.zip gcc-d42a11e1222382954320f2234d1d3edb3742a954.tar.gz gcc-d42a11e1222382954320f2234d1d3edb3742a954.tar.bz2 |
std_cmath.h: Declare C99 functions and helper functions as inline.
2005-09-01 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/std_cmath.h: Declare C99 functions and helper
functions as inline.
Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
From-SVN: r103743
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/std_cmath.h | 66 |
2 files changed, 39 insertions, 34 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0cc8e9c..5ba1501 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2005-09-01 Benjamin Kosnik <bkoz@redhat.com> - Paolo Carlini <pcarlini@suse.de> + + * include/c_std/std_cmath.h: Declare C99 functions and helper + functions as inline. + +2005-09-01 Benjamin Kosnik <bkoz@redhat.com> + Paolo Carlini <pcarlini@suse.de> * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): Fix comment. diff --git a/libstdc++-v3/include/c_std/std_cmath.h b/libstdc++-v3/include/c_std/std_cmath.h index 4bd2565..3d125e4 100644 --- a/libstdc++-v3/include/c_std/std_cmath.h +++ b/libstdc++-v3/include/c_std/std_cmath.h @@ -444,57 +444,57 @@ namespace std namespace __gnu_cxx { template<typename _Tp> - int + inline int __capture_fpclassify(_Tp __f) { return fpclassify(__f); } template<typename _Tp> - int + inline int __capture_isfinite(_Tp __f) { return isfinite(__f); } template<typename _Tp> - int + inline int __capture_isinf(_Tp __f) { return isinf(__f); } template<typename _Tp> - int + inline int __capture_isnan(_Tp __f) { return isnan(__f); } template<typename _Tp> - int + inline int __capture_isnormal(_Tp __f) { return isnormal(__f); } template<typename _Tp> - int + inline int __capture_signbit(_Tp __f) { return signbit(__f); } template<typename _Tp> - int + inline int __capture_isgreater(_Tp __f1, _Tp __f2) { return isgreater(__f1, __f2); } template<typename _Tp> - int - __capture_isgreaterequal(_Tp __f1, _Tp __f2) - { return isgreaterequal(__f1, __f2); } + inline int + __capture_isgreaterequal(_Tp __f1, _Tp __f2) + { return isgreaterequal(__f1, __f2); } template<typename _Tp> - int - __capture_isless(_Tp __f1, _Tp __f2) { return isless(__f1, __f2); } + int + __capture_isless(_Tp __f1, _Tp __f2) { return isless(__f1, __f2); } template<typename _Tp> - int - __capture_islessequal(_Tp __f1, _Tp __f2) - { return islessequal(__f1, __f2); } + inline int + __capture_islessequal(_Tp __f1, _Tp __f2) + { return islessequal(__f1, __f2); } template<typename _Tp> - int - __capture_islessgreater(_Tp __f1, _Tp __f2) - { return islessgreater(__f1, __f2); } + inline int + __capture_islessgreater(_Tp __f1, _Tp __f2) + { return islessgreater(__f1, __f2); } template<typename _Tp> - int - __capture_isunordered(_Tp __f1, _Tp __f2) - { return isunordered(__f1, __f2); } + inline int + __capture_isunordered(_Tp __f1, _Tp __f2) + { return isunordered(__f1, __f2); } } // Only undefine the C99 FP macros, if actually captured for namespace movement @@ -514,56 +514,56 @@ namespace __gnu_cxx namespace std { template<typename _Tp> - int + inline int fpclassify(_Tp __f) { return __gnu_cxx::__capture_fpclassify(__f); } template<typename _Tp> - int + inline int isfinite(_Tp __f) { return __gnu_cxx::__capture_isfinite(__f); } template<typename _Tp> - int + inline int isinf(_Tp __f) { return __gnu_cxx::__capture_isinf(__f); } template<typename _Tp> - int + inline int isnan(_Tp __f) { return __gnu_cxx::__capture_isnan(__f); } template<typename _Tp> - int + inline int isnormal(_Tp __f) { return __gnu_cxx::__capture_isnormal(__f); } template<typename _Tp> - int + inline int signbit(_Tp __f) { return __gnu_cxx::__capture_signbit(__f); } template<typename _Tp> - int + inline int isgreater(_Tp __f1, _Tp __f2) { return __gnu_cxx::__capture_isgreater(__f1, __f2); } template<typename _Tp> - int + inline int isgreaterequal(_Tp __f1, _Tp __f2) { return __gnu_cxx::__capture_isgreaterequal(__f1, __f2); } template<typename _Tp> - int + inline int isless(_Tp __f1, _Tp __f2) { return __gnu_cxx::__capture_isless(__f1, __f2); } template<typename _Tp> - int + inline int islessequal(_Tp __f1, _Tp __f2) { return __gnu_cxx::__capture_islessequal(__f1, __f2); } template<typename _Tp> - int + inline int islessgreater(_Tp __f1, _Tp __f2) { return __gnu_cxx::__capture_islessgreater(__f1, __f2); } template<typename _Tp> - int + inline int isunordered(_Tp __f1, _Tp __f2) { return __gnu_cxx::__capture_isunordered(__f1, __f2); } } |