bessel_function.tcc (__cyl_bessel_ij_series): Code simplification.
2013-02-09 François Dumont <fdumont@gcc.gnu.org> * include/tr1/bessel_function.tcc (__cyl_bessel_ij_series): Code simplification. From-SVN: r195925
This commit is contained in:
parent
25976b7f5d
commit
0112ed6089
@ -1,3 +1,8 @@
|
||||
2013-02-09 François Dumont <fdumont@gcc.gnu.org>
|
||||
|
||||
* include/tr1/bessel_function.tcc (__cyl_bessel_ij_series): Code
|
||||
simplification.
|
||||
|
||||
2013-02-08 Edward Smith-Rowland <3dw4rd@verizon.net>
|
||||
|
||||
PR libstdc++/56216
|
||||
|
@ -409,14 +409,8 @@ namespace tr1
|
||||
unsigned int __max_iter)
|
||||
{
|
||||
if (__x == _Tp(0))
|
||||
{
|
||||
if (__nu == _Tp(0))
|
||||
return _Tp(1);
|
||||
else if (__nu == _Tp(1))
|
||||
return _Tp(0);
|
||||
else
|
||||
return _Tp(0);
|
||||
}
|
||||
return __nu == _Tp(0) ? _Tp(1) : _Tp(0);
|
||||
|
||||
const _Tp __x2 = __x / _Tp(2);
|
||||
_Tp __fact = __nu * std::log(__x2);
|
||||
#if _GLIBCXX_USE_C99_MATH_TR1
|
||||
|
Loading…
x
Reference in New Issue
Block a user