summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-13 08:25:36 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-13 08:25:36 +0000
commita11c1e54832f69b7ebb219d5a09047adad1df95a (patch)
treea5f35ea51c892af16ea10be44d5092670c75fb75 /libstdc++-v3
parent2c83a45e0dace6db92b521e1095a3de412223a52 (diff)
downloadgcc-a11c1e54832f69b7ebb219d5a09047adad1df95a.tar.gz
2013-06-13 Paolo Carlini <paolo.carlini@oracle.com>
* include/tr1/modified_bessel_func.tcc (__gnu_cxx::__airy_ai(), __gnu_cxx::__airy_bi()): Remove. * testsuite/tr1/5_numerical_facilities/special_functions/ 10_cyl_bessel_k/airy.cc: Fix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200060 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/include/tr1/modified_bessel_func.tcc47
-rw-r--r--libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/airy.cc7
3 files changed, 9 insertions, 52 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b8896bed4f1..40c145068e3 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,10 @@
+2013-06-13 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * include/tr1/modified_bessel_func.tcc (__gnu_cxx::__airy_ai(),
+ __gnu_cxx::__airy_bi()): Remove.
+ * testsuite/tr1/5_numerical_facilities/special_functions/
+ 10_cyl_bessel_k/airy.cc: Fix.
+
2013-06-12 Ed Smith-Rowland <3dw4rd@verizon.net>
PR libstdc++/56430
diff --git a/libstdc++-v3/include/tr1/modified_bessel_func.tcc b/libstdc++-v3/include/tr1/modified_bessel_func.tcc
index 830bf168608..146d932de2f 100644
--- a/libstdc++-v3/include/tr1/modified_bessel_func.tcc
+++ b/libstdc++-v3/include/tr1/modified_bessel_func.tcc
@@ -431,51 +431,4 @@ namespace tr1
}
}
-
-namespace __gnu_cxx
-{
-
- /**
- * @brief Compute the Airy function of the first kind @f$ Ai(x) @f$.
- *
- * @param __x The argument of the Airy function.
- * @return The Airy function of the first kind at x.
- */
- template<typename _Tp>
- _Tp
- __airy_ai(_Tp __x)
- {
- if (__isnan(__x))
- return std::numeric_limits<_Tp>::quiet_NaN();
- else
- {
- _Tp __Ai, __Bi, __Aip, __Bip;
- std::tr1::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip);
- return __Ai;
- }
- }
-
-
- /**
- * @brief Compute the Airy function of the second kind @f$ Bi(x) @f$.
- *
- * @param __x The argument of the Airy function.
- * @return The Airy function of the second kind at x.
- */
- template<typename _Tp>
- _Tp
- __airy_bi(_Tp __x)
- {
- if (__isnan(__x))
- return std::numeric_limits<_Tp>::quiet_NaN();
- else
- {
- _Tp __Ai, __Bi, __Aip, __Bip;
- std::tr1::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip);
- return __Bi;
- }
- }
-
-} // namespace __gnu_cxx
-
#endif // _GLIBCXX_TR1_MODIFIED_BESSEL_FUNC_TCC
diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/airy.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/airy.cc
index 57d75e5ec27..f2a5d7511c4 100644
--- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/airy.cc
+++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/airy.cc
@@ -1,6 +1,6 @@
// { dg-do compile }
-// 2013-02-13 Edward Smith-Rowland <3dw4rd@verizon.net>
+// 2013-06-12 Edward Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2013 Free Software Foundation, Inc.
//
@@ -24,14 +24,11 @@
#include <tr1/cmath>
-int
+void
test01()
{
bool test __attribute__((unused)) = true;
double x, Ai, Bi, Aip, Bip;
x = 1.0;
std::tr1::__detail::__airy(x, Ai, Bi, Aip, Bip);
-
- double Ai2 = __gnu_cxx::__airy_ai(x);
- double Bi2 = __gnu_cxx::__airy_bi(x);
}