gamma.tcc: Change include guard from _TR1_GAMMA_TCC to _GLIBCXX_TR1_GAMMA_TCC to match the...
2009-08-20 Edward Smith-Rowland <3dw4rd@verizon.net> * include/tr1/gamma.tcc: Change include guard from _TR1_GAMMA_TCC to _GLIBCXX_TR1_GAMMA_TCC to match the rest of the headers in tr1. * include/tr1/exp_integral.tcc: Replace _TR1_GAMMA_TCC with __numeric_constants<_Tp>::__gamma_e(). From-SVN: r150958
This commit is contained in:
parent
e4c1aa1996
commit
a15afcc6f2
|
@ -1,3 +1,10 @@
|
||||||
|
2009-08-20 Edward Smith-Rowland <3dw4rd@verizon.net>
|
||||||
|
|
||||||
|
* include/tr1/gamma.tcc: Change include guard from _TR1_GAMMA_TCC
|
||||||
|
to _GLIBCXX_TR1_GAMMA_TCC to match the rest of the headers in tr1.
|
||||||
|
* include/tr1/exp_integral.tcc: Replace _TR1_GAMMA_TCC with
|
||||||
|
__numeric_constants<_Tp>::__gamma_e().
|
||||||
|
|
||||||
2009-08-17 Benjamin Kosnik <bkoz@redhat.com>
|
2009-08-17 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
* testsuite/30_threads/packaged_task/requirements/typedefs.cc: New.
|
* testsuite/30_threads/packaged_task/requirements/typedefs.cc: New.
|
||||||
|
|
|
@ -165,7 +165,7 @@ namespace tr1
|
||||||
__del = -__fact / _Tp(__i - __nm1);
|
__del = -__fact / _Tp(__i - __nm1);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_Tp __psi = -_TR1_GAMMA_TCC;
|
_Tp __psi = -__numeric_constants<_Tp>::gamma_e();
|
||||||
for (int __ii = 1; __ii <= __nm1; ++__ii)
|
for (int __ii = 1; __ii <= __nm1; ++__ii)
|
||||||
__psi += _Tp(1) / _Tp(__ii);
|
__psi += _Tp(1) / _Tp(__ii);
|
||||||
__del = __fact * (__psi - std::log(__x));
|
__del = __fact * (__psi - std::log(__x));
|
||||||
|
|
|
@ -44,8 +44,8 @@
|
||||||
// (4) Gamma, Exploring Euler's Constant, Julian Havil,
|
// (4) Gamma, Exploring Euler's Constant, Julian Havil,
|
||||||
// Princeton, 2003.
|
// Princeton, 2003.
|
||||||
|
|
||||||
#ifndef _TR1_GAMMA_TCC
|
#ifndef _GLIBCXX_TR1_GAMMA_TCC
|
||||||
#define _TR1_GAMMA_TCC 1
|
#define _GLIBCXX_TR1_GAMMA_TCC 1
|
||||||
|
|
||||||
#include "special_function_util.h"
|
#include "special_function_util.h"
|
||||||
|
|
||||||
|
@ -467,5 +467,5 @@ namespace tr1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _TR1_GAMMA_TCC
|
#endif // _GLIBCXX_TR1_GAMMA_TCC
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue