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
This commit is contained in:
parent
868057591b
commit
d42a11e122
|
@ -1,5 +1,10 @@
|
||||||
2005-09-01 Benjamin Kosnik <bkoz@redhat.com>
|
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
|
* testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): Fix
|
||||||
comment.
|
comment.
|
||||||
|
|
|
@ -444,57 +444,57 @@ namespace std
|
||||||
namespace __gnu_cxx
|
namespace __gnu_cxx
|
||||||
{
|
{
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_fpclassify(_Tp __f) { return fpclassify(__f); }
|
__capture_fpclassify(_Tp __f) { return fpclassify(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_isfinite(_Tp __f) { return isfinite(__f); }
|
__capture_isfinite(_Tp __f) { return isfinite(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_isinf(_Tp __f) { return isinf(__f); }
|
__capture_isinf(_Tp __f) { return isinf(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_isnan(_Tp __f) { return isnan(__f); }
|
__capture_isnan(_Tp __f) { return isnan(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_isnormal(_Tp __f) { return isnormal(__f); }
|
__capture_isnormal(_Tp __f) { return isnormal(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_signbit(_Tp __f) { return signbit(__f); }
|
__capture_signbit(_Tp __f) { return signbit(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_isgreater(_Tp __f1, _Tp __f2)
|
__capture_isgreater(_Tp __f1, _Tp __f2)
|
||||||
{ return isgreater(__f1, __f2); }
|
{ return isgreater(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_isgreaterequal(_Tp __f1, _Tp __f2)
|
__capture_isgreaterequal(_Tp __f1, _Tp __f2)
|
||||||
{ return isgreaterequal(__f1, __f2); }
|
{ return isgreaterequal(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
int
|
||||||
__capture_isless(_Tp __f1, _Tp __f2) { return isless(__f1, __f2); }
|
__capture_isless(_Tp __f1, _Tp __f2) { return isless(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_islessequal(_Tp __f1, _Tp __f2)
|
__capture_islessequal(_Tp __f1, _Tp __f2)
|
||||||
{ return islessequal(__f1, __f2); }
|
{ return islessequal(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_islessgreater(_Tp __f1, _Tp __f2)
|
__capture_islessgreater(_Tp __f1, _Tp __f2)
|
||||||
{ return islessgreater(__f1, __f2); }
|
{ return islessgreater(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
__capture_isunordered(_Tp __f1, _Tp __f2)
|
__capture_isunordered(_Tp __f1, _Tp __f2)
|
||||||
{ return isunordered(__f1, __f2); }
|
{ return isunordered(__f1, __f2); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only undefine the C99 FP macros, if actually captured for namespace movement
|
// Only undefine the C99 FP macros, if actually captured for namespace movement
|
||||||
|
@ -514,56 +514,56 @@ namespace __gnu_cxx
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
fpclassify(_Tp __f) { return __gnu_cxx::__capture_fpclassify(__f); }
|
fpclassify(_Tp __f) { return __gnu_cxx::__capture_fpclassify(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
isfinite(_Tp __f) { return __gnu_cxx::__capture_isfinite(__f); }
|
isfinite(_Tp __f) { return __gnu_cxx::__capture_isfinite(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
isinf(_Tp __f) { return __gnu_cxx::__capture_isinf(__f); }
|
isinf(_Tp __f) { return __gnu_cxx::__capture_isinf(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
isnan(_Tp __f) { return __gnu_cxx::__capture_isnan(__f); }
|
isnan(_Tp __f) { return __gnu_cxx::__capture_isnan(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
isnormal(_Tp __f) { return __gnu_cxx::__capture_isnormal(__f); }
|
isnormal(_Tp __f) { return __gnu_cxx::__capture_isnormal(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
signbit(_Tp __f) { return __gnu_cxx::__capture_signbit(__f); }
|
signbit(_Tp __f) { return __gnu_cxx::__capture_signbit(__f); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
isgreater(_Tp __f1, _Tp __f2)
|
isgreater(_Tp __f1, _Tp __f2)
|
||||||
{ return __gnu_cxx::__capture_isgreater(__f1, __f2); }
|
{ return __gnu_cxx::__capture_isgreater(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
isgreaterequal(_Tp __f1, _Tp __f2)
|
isgreaterequal(_Tp __f1, _Tp __f2)
|
||||||
{ return __gnu_cxx::__capture_isgreaterequal(__f1, __f2); }
|
{ return __gnu_cxx::__capture_isgreaterequal(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
isless(_Tp __f1, _Tp __f2)
|
isless(_Tp __f1, _Tp __f2)
|
||||||
{ return __gnu_cxx::__capture_isless(__f1, __f2); }
|
{ return __gnu_cxx::__capture_isless(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
islessequal(_Tp __f1, _Tp __f2)
|
islessequal(_Tp __f1, _Tp __f2)
|
||||||
{ return __gnu_cxx::__capture_islessequal(__f1, __f2); }
|
{ return __gnu_cxx::__capture_islessequal(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
islessgreater(_Tp __f1, _Tp __f2)
|
islessgreater(_Tp __f1, _Tp __f2)
|
||||||
{ return __gnu_cxx::__capture_islessgreater(__f1, __f2); }
|
{ return __gnu_cxx::__capture_islessgreater(__f1, __f2); }
|
||||||
|
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
int
|
inline int
|
||||||
isunordered(_Tp __f1, _Tp __f2)
|
isunordered(_Tp __f1, _Tp __f2)
|
||||||
{ return __gnu_cxx::__capture_isunordered(__f1, __f2); }
|
{ return __gnu_cxx::__capture_isunordered(__f1, __f2); }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue