summaryrefslogtreecommitdiff
path: root/boost/libs/math/src/tr1
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
commite0737c56c1e384e05064a0c6e1ac46979371041b (patch)
treea0123d694a2d36c43dabdf0a3907392fce11d457 /boost/libs/math/src/tr1
parentb4aebf2d137b892f53503b13785ecae900062ff7 (diff)
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'boost/libs/math/src/tr1')
-rw-r--r--boost/libs/math/src/tr1/acosh.cpp19
-rw-r--r--boost/libs/math/src/tr1/acoshf.cpp19
-rw-r--r--boost/libs/math/src/tr1/acoshl.cpp19
-rw-r--r--boost/libs/math/src/tr1/asinh.cpp19
-rw-r--r--boost/libs/math/src/tr1/asinhf.cpp19
-rw-r--r--boost/libs/math/src/tr1/asinhl.cpp19
-rw-r--r--boost/libs/math/src/tr1/assoc_laguerre.cpp19
-rw-r--r--boost/libs/math/src/tr1/assoc_laguerref.cpp19
-rw-r--r--boost/libs/math/src/tr1/assoc_laguerrel.cpp19
-rw-r--r--boost/libs/math/src/tr1/assoc_legendre.cpp19
-rw-r--r--boost/libs/math/src/tr1/assoc_legendref.cpp19
-rw-r--r--boost/libs/math/src/tr1/assoc_legendrel.cpp19
-rw-r--r--boost/libs/math/src/tr1/atanh.cpp19
-rw-r--r--boost/libs/math/src/tr1/atanhf.cpp19
-rw-r--r--boost/libs/math/src/tr1/atanhl.cpp19
-rw-r--r--boost/libs/math/src/tr1/beta.cpp19
-rw-r--r--boost/libs/math/src/tr1/betaf.cpp19
-rw-r--r--boost/libs/math/src/tr1/betal.cpp19
-rw-r--r--boost/libs/math/src/tr1/c_policy.hpp131
-rw-r--r--boost/libs/math/src/tr1/cbrt.cpp19
-rw-r--r--boost/libs/math/src/tr1/cbrtf.cpp19
-rw-r--r--boost/libs/math/src/tr1/cbrtl.cpp19
-rw-r--r--boost/libs/math/src/tr1/comp_ellint_1.cpp19
-rw-r--r--boost/libs/math/src/tr1/comp_ellint_1f.cpp19
-rw-r--r--boost/libs/math/src/tr1/comp_ellint_1l.cpp19
-rw-r--r--boost/libs/math/src/tr1/comp_ellint_2.cpp19
-rw-r--r--boost/libs/math/src/tr1/comp_ellint_2f.cpp19
-rw-r--r--boost/libs/math/src/tr1/comp_ellint_2l.cpp19
-rw-r--r--boost/libs/math/src/tr1/comp_ellint_3.cpp19
-rw-r--r--boost/libs/math/src/tr1/comp_ellint_3f.cpp19
-rw-r--r--boost/libs/math/src/tr1/comp_ellint_3l.cpp19
-rw-r--r--boost/libs/math/src/tr1/copysign.cpp20
-rw-r--r--boost/libs/math/src/tr1/copysignf.cpp20
-rw-r--r--boost/libs/math/src/tr1/copysignl.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_bessel_i.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_bessel_if.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_bessel_il.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_bessel_j.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_bessel_jf.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_bessel_jl.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_bessel_k.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_bessel_kf.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_bessel_kl.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_neumann.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_neumannf.cpp19
-rw-r--r--boost/libs/math/src/tr1/cyl_neumannl.cpp19
-rw-r--r--boost/libs/math/src/tr1/ellint_1.cpp19
-rw-r--r--boost/libs/math/src/tr1/ellint_1f.cpp19
-rw-r--r--boost/libs/math/src/tr1/ellint_1l.cpp19
-rw-r--r--boost/libs/math/src/tr1/ellint_2.cpp19
-rw-r--r--boost/libs/math/src/tr1/ellint_2f.cpp19
-rw-r--r--boost/libs/math/src/tr1/ellint_2l.cpp19
-rw-r--r--boost/libs/math/src/tr1/ellint_3.cpp19
-rw-r--r--boost/libs/math/src/tr1/ellint_3f.cpp19
-rw-r--r--boost/libs/math/src/tr1/ellint_3l.cpp19
-rw-r--r--boost/libs/math/src/tr1/erf.cpp19
-rw-r--r--boost/libs/math/src/tr1/erfc.cpp19
-rw-r--r--boost/libs/math/src/tr1/erfcf.cpp19
-rw-r--r--boost/libs/math/src/tr1/erfcl.cpp19
-rw-r--r--boost/libs/math/src/tr1/erff.cpp19
-rw-r--r--boost/libs/math/src/tr1/erfl.cpp19
-rw-r--r--boost/libs/math/src/tr1/expint.cpp19
-rw-r--r--boost/libs/math/src/tr1/expintf.cpp19
-rw-r--r--boost/libs/math/src/tr1/expintl.cpp19
-rw-r--r--boost/libs/math/src/tr1/expm1.cpp19
-rw-r--r--boost/libs/math/src/tr1/expm1f.cpp19
-rw-r--r--boost/libs/math/src/tr1/expm1l.cpp19
-rw-r--r--boost/libs/math/src/tr1/fmax.cpp23
-rw-r--r--boost/libs/math/src/tr1/fmaxf.cpp24
-rw-r--r--boost/libs/math/src/tr1/fmaxl.cpp23
-rw-r--r--boost/libs/math/src/tr1/fmin.cpp23
-rw-r--r--boost/libs/math/src/tr1/fminf.cpp24
-rw-r--r--boost/libs/math/src/tr1/fminl.cpp23
-rw-r--r--boost/libs/math/src/tr1/fpclassify.cpp56
-rw-r--r--boost/libs/math/src/tr1/fpclassifyf.cpp58
-rw-r--r--boost/libs/math/src/tr1/fpclassifyl.cpp57
-rw-r--r--boost/libs/math/src/tr1/hermite.cpp19
-rw-r--r--boost/libs/math/src/tr1/hermitef.cpp19
-rw-r--r--boost/libs/math/src/tr1/hermitel.cpp19
-rw-r--r--boost/libs/math/src/tr1/hypot.cpp23
-rw-r--r--boost/libs/math/src/tr1/hypotf.cpp23
-rw-r--r--boost/libs/math/src/tr1/hypotl.cpp23
-rw-r--r--boost/libs/math/src/tr1/laguerre.cpp19
-rw-r--r--boost/libs/math/src/tr1/laguerref.cpp19
-rw-r--r--boost/libs/math/src/tr1/laguerrel.cpp19
-rw-r--r--boost/libs/math/src/tr1/legendre.cpp19
-rw-r--r--boost/libs/math/src/tr1/legendref.cpp19
-rw-r--r--boost/libs/math/src/tr1/legendrel.cpp19
-rw-r--r--boost/libs/math/src/tr1/lgamma.cpp23
-rw-r--r--boost/libs/math/src/tr1/lgammaf.cpp23
-rw-r--r--boost/libs/math/src/tr1/lgammal.cpp23
-rw-r--r--boost/libs/math/src/tr1/llround.cpp23
-rw-r--r--boost/libs/math/src/tr1/llroundf.cpp23
-rw-r--r--boost/libs/math/src/tr1/llroundl.cpp23
-rw-r--r--boost/libs/math/src/tr1/log1p.cpp23
-rw-r--r--boost/libs/math/src/tr1/log1pf.cpp23
-rw-r--r--boost/libs/math/src/tr1/log1pl.cpp23
-rw-r--r--boost/libs/math/src/tr1/lround.cpp23
-rw-r--r--boost/libs/math/src/tr1/lroundf.cpp23
-rw-r--r--boost/libs/math/src/tr1/lroundl.cpp23
-rw-r--r--boost/libs/math/src/tr1/nextafter.cpp23
-rw-r--r--boost/libs/math/src/tr1/nextafterf.cpp23
-rw-r--r--boost/libs/math/src/tr1/nextafterl.cpp23
-rw-r--r--boost/libs/math/src/tr1/nexttoward.cpp27
-rw-r--r--boost/libs/math/src/tr1/nexttowardf.cpp27
-rw-r--r--boost/libs/math/src/tr1/nexttowardl.cpp23
-rw-r--r--boost/libs/math/src/tr1/pch.hpp12
-rw-r--r--boost/libs/math/src/tr1/riemann_zeta.cpp19
-rw-r--r--boost/libs/math/src/tr1/riemann_zetaf.cpp19
-rw-r--r--boost/libs/math/src/tr1/riemann_zetal.cpp19
-rw-r--r--boost/libs/math/src/tr1/round.cpp23
-rw-r--r--boost/libs/math/src/tr1/roundf.cpp23
-rw-r--r--boost/libs/math/src/tr1/roundl.cpp23
-rw-r--r--boost/libs/math/src/tr1/sph_bessel.cpp19
-rw-r--r--boost/libs/math/src/tr1/sph_besself.cpp19
-rw-r--r--boost/libs/math/src/tr1/sph_bessell.cpp19
-rw-r--r--boost/libs/math/src/tr1/sph_legendre.cpp19
-rw-r--r--boost/libs/math/src/tr1/sph_legendref.cpp19
-rw-r--r--boost/libs/math/src/tr1/sph_legendrel.cpp19
-rw-r--r--boost/libs/math/src/tr1/sph_neumann.cpp19
-rw-r--r--boost/libs/math/src/tr1/sph_neumannf.cpp19
-rw-r--r--boost/libs/math/src/tr1/sph_neumannl.cpp19
-rw-r--r--boost/libs/math/src/tr1/tgamma.cpp23
-rw-r--r--boost/libs/math/src/tr1/tgammaf.cpp23
-rw-r--r--boost/libs/math/src/tr1/tgammal.cpp23
-rw-r--r--boost/libs/math/src/tr1/trunc.cpp23
-rw-r--r--boost/libs/math/src/tr1/truncf.cpp23
-rw-r--r--boost/libs/math/src/tr1/truncl.cpp23
128 files changed, 2807 insertions, 0 deletions
diff --git a/boost/libs/math/src/tr1/acosh.cpp b/boost/libs/math/src/tr1/acosh.cpp
new file mode 100644
index 00000000..67fd9a6b
--- /dev/null
+++ b/boost/libs/math/src/tr1/acosh.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/acosh.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_acosh BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::acosh BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/acoshf.cpp b/boost/libs/math/src/tr1/acoshf.cpp
new file mode 100644
index 00000000..4b7c8d84
--- /dev/null
+++ b/boost/libs/math/src/tr1/acoshf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/acosh.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_acoshf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::acosh BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/acoshl.cpp b/boost/libs/math/src/tr1/acoshl.cpp
new file mode 100644
index 00000000..7e20dab9
--- /dev/null
+++ b/boost/libs/math/src/tr1/acoshl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/acosh.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_acoshl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::acosh BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/asinh.cpp b/boost/libs/math/src/tr1/asinh.cpp
new file mode 100644
index 00000000..5d1cc41d
--- /dev/null
+++ b/boost/libs/math/src/tr1/asinh.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/asinh.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_asinh BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::asinh BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/asinhf.cpp b/boost/libs/math/src/tr1/asinhf.cpp
new file mode 100644
index 00000000..3ead3785
--- /dev/null
+++ b/boost/libs/math/src/tr1/asinhf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/asinh.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_asinhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::asinh BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/asinhl.cpp b/boost/libs/math/src/tr1/asinhl.cpp
new file mode 100644
index 00000000..e49b4d98
--- /dev/null
+++ b/boost/libs/math/src/tr1/asinhl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/asinh.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_asinhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::asinh BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/assoc_laguerre.cpp b/boost/libs/math/src/tr1/assoc_laguerre.cpp
new file mode 100644
index 00000000..ea674d1a
--- /dev/null
+++ b/boost/libs/math/src/tr1/assoc_laguerre.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/laguerre.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/assoc_laguerref.cpp b/boost/libs/math/src/tr1/assoc_laguerref.cpp
new file mode 100644
index 00000000..563a1600
--- /dev/null
+++ b/boost/libs/math/src/tr1/assoc_laguerref.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/laguerre.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_assoc_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/assoc_laguerrel.cpp b/boost/libs/math/src/tr1/assoc_laguerrel.cpp
new file mode 100644
index 00000000..e261cf37
--- /dev/null
+++ b/boost/libs/math/src/tr1/assoc_laguerrel.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/laguerre.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_assoc_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/assoc_legendre.cpp b/boost/libs/math/src/tr1/assoc_legendre.cpp
new file mode 100644
index 00000000..78a17f98
--- /dev/null
+++ b/boost/libs/math/src/tr1/assoc_legendre.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/legendre.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return (m&1 ? -1 : 1) * c_policies::legendre_p BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/assoc_legendref.cpp b/boost/libs/math/src/tr1/assoc_legendref.cpp
new file mode 100644
index 00000000..70665d4e
--- /dev/null
+++ b/boost/libs/math/src/tr1/assoc_legendref.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/legendre.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_assoc_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return (m&1 ? -1 : 1) * c_policies::legendre_p BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/assoc_legendrel.cpp b/boost/libs/math/src/tr1/assoc_legendrel.cpp
new file mode 100644
index 00000000..318a69a9
--- /dev/null
+++ b/boost/libs/math/src/tr1/assoc_legendrel.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/legendre.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_assoc_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return (m&1 ? -1 : 1) * c_policies::legendre_p BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/atanh.cpp b/boost/libs/math/src/tr1/atanh.cpp
new file mode 100644
index 00000000..d73383cb
--- /dev/null
+++ b/boost/libs/math/src/tr1/atanh.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/atanh.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_atanh BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::atanh BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/atanhf.cpp b/boost/libs/math/src/tr1/atanhf.cpp
new file mode 100644
index 00000000..210ad4d9
--- /dev/null
+++ b/boost/libs/math/src/tr1/atanhf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/atanh.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_atanhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::atanh BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/atanhl.cpp b/boost/libs/math/src/tr1/atanhl.cpp
new file mode 100644
index 00000000..eb13be3c
--- /dev/null
+++ b/boost/libs/math/src/tr1/atanhl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/atanh.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_atanhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::atanh BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/beta.cpp b/boost/libs/math/src/tr1/beta.cpp
new file mode 100644
index 00000000..0922c1d9
--- /dev/null
+++ b/boost/libs/math/src/tr1/beta.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/beta.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_beta BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::beta BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+
diff --git a/boost/libs/math/src/tr1/betaf.cpp b/boost/libs/math/src/tr1/betaf.cpp
new file mode 100644
index 00000000..31ac4798
--- /dev/null
+++ b/boost/libs/math/src/tr1/betaf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/beta.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_betaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::beta BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+
diff --git a/boost/libs/math/src/tr1/betal.cpp b/boost/libs/math/src/tr1/betal.cpp
new file mode 100644
index 00000000..024c92d4
--- /dev/null
+++ b/boost/libs/math/src/tr1/betal.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/beta.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_betal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::beta BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+
diff --git a/boost/libs/math/src/tr1/c_policy.hpp b/boost/libs/math/src/tr1/c_policy.hpp
new file mode 100644
index 00000000..cf195133
--- /dev/null
+++ b/boost/libs/math/src/tr1/c_policy.hpp
@@ -0,0 +1,131 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+#include <boost/math/policies/policy.hpp>
+#include <boost/math/special_functions/math_fwd.hpp>
+
+namespace boost{ namespace math{ namespace policies{
+
+template <>
+struct policy<
+ domain_error<errno_on_error>,
+ pole_error<errno_on_error>,
+ overflow_error<errno_on_error>,
+ evaluation_error<errno_on_error>,
+ rounding_error<errno_on_error>,
+ default_policy, default_policy, default_policy, default_policy, default_policy, default_policy>
+{
+public:
+ typedef domain_error<errno_on_error> domain_error_type;
+ typedef pole_error<errno_on_error> pole_error_type;
+ typedef overflow_error<errno_on_error> overflow_error_type;
+ typedef underflow_error<errno_on_error> underflow_error_type;
+ typedef denorm_error<errno_on_error> denorm_error_type;
+ typedef evaluation_error<errno_on_error> evaluation_error_type;
+ typedef rounding_error<errno_on_error> rounding_error_type;
+ typedef indeterminate_result_error<> indeterminate_result_error_type;
+#if BOOST_MATH_DIGITS10_POLICY == 0
+ typedef digits2<> precision_type;
+#else
+ typedef detail::precision<digits10<>, digits2<> >::type precision_type;
+#endif
+ typedef promote_float<> promote_float_type;
+ typedef promote_double<> promote_double_type;
+ typedef discrete_quantile<> discrete_quantile_type;
+ typedef assert_undefined<> assert_undefined_type;
+ typedef max_series_iterations<> max_series_iterations_type;
+ typedef max_root_iterations<> max_root_iterations_type;
+};
+
+template <>
+struct policy<
+ domain_error<errno_on_error>,
+ pole_error<errno_on_error>,
+ overflow_error<errno_on_error>,
+ evaluation_error<errno_on_error>,
+ rounding_error<errno_on_error>,
+ detail::forwarding_arg1,
+ detail::forwarding_arg2,
+ default_policy, default_policy, default_policy, default_policy, default_policy, default_policy>
+{
+public:
+ typedef domain_error<errno_on_error> domain_error_type;
+ typedef pole_error<errno_on_error> pole_error_type;
+ typedef overflow_error<errno_on_error> overflow_error_type;
+ typedef underflow_error<errno_on_error> underflow_error_type;
+ typedef denorm_error<errno_on_error> denorm_error_type;
+ typedef evaluation_error<errno_on_error> evaluation_error_type;
+ typedef rounding_error<errno_on_error> rounding_error_type;
+ typedef indeterminate_result_error<> indeterminate_result_error_type;
+#if BOOST_MATH_DIGITS10_POLICY == 0
+ typedef digits2<> precision_type;
+#else
+ typedef detail::precision<digits10<>, digits2<> >::type precision_type;
+#endif
+ typedef promote_float<false> promote_float_type;
+ typedef promote_double<false> promote_double_type;
+ typedef discrete_quantile<> discrete_quantile_type;
+ typedef assert_undefined<> assert_undefined_type;
+ typedef max_series_iterations<> max_series_iterations_type;
+ typedef max_root_iterations<> max_root_iterations_type;
+};
+
+template <>
+struct normalise<policy<domain_error<errno_on_error>, pole_error<errno_on_error>, overflow_error<errno_on_error>, evaluation_error<errno_on_error>, rounding_error<errno_on_error> >,
+ promote_float<false>,
+ promote_double<false>,
+ discrete_quantile<>,
+ assert_undefined<>,
+ default_policy,
+ default_policy,
+ default_policy,
+ default_policy,
+ default_policy,
+ default_policy,
+ default_policy>
+{
+ typedef policy<domain_error<errno_on_error>, pole_error<errno_on_error>, overflow_error<errno_on_error>, evaluation_error<errno_on_error>, rounding_error<errno_on_error>, detail::forwarding_arg1, detail::forwarding_arg2> type;
+};
+
+template <>
+struct normalise<policy<domain_error<errno_on_error>, pole_error<errno_on_error>, overflow_error<errno_on_error>, evaluation_error<errno_on_error>, rounding_error<errno_on_error>, detail::forwarding_arg1, detail::forwarding_arg2 >,
+ promote_float<false>,
+ promote_double<false>,
+ discrete_quantile<>,
+ assert_undefined<>,
+ default_policy,
+ default_policy,
+ default_policy,
+ default_policy,
+ default_policy,
+ default_policy,
+ default_policy>
+{
+ typedef policy<domain_error<errno_on_error>, pole_error<errno_on_error>, overflow_error<errno_on_error>, evaluation_error<errno_on_error>, rounding_error<errno_on_error>, detail::forwarding_arg1, detail::forwarding_arg2> type;
+};
+
+}}} // namespaces
+
+namespace c_policies{
+
+using boost::math::policies::policy;
+using boost::math::policies::errno_on_error;
+using boost::math::policies::domain_error;
+using boost::math::policies::pole_error;
+using boost::math::policies::overflow_error;
+using boost::math::policies::rounding_error;
+using boost::math::policies::evaluation_error;
+
+typedef policy<
+ domain_error<errno_on_error>,
+ pole_error<errno_on_error>,
+ overflow_error<errno_on_error>,
+ evaluation_error<errno_on_error>,
+ rounding_error<errno_on_error>
+> c_policy;
+
+BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(c_policy)
+
+}
diff --git a/boost/libs/math/src/tr1/cbrt.cpp b/boost/libs/math/src/tr1/cbrt.cpp
new file mode 100644
index 00000000..2121c458
--- /dev/null
+++ b/boost/libs/math/src/tr1/cbrt.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/cbrt.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cbrtf.cpp b/boost/libs/math/src/tr1/cbrtf.cpp
new file mode 100644
index 00000000..c8dd94f7
--- /dev/null
+++ b/boost/libs/math/src/tr1/cbrtf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/cbrt.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_cbrtf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cbrtl.cpp b/boost/libs/math/src/tr1/cbrtl.cpp
new file mode 100644
index 00000000..085a6b4a
--- /dev/null
+++ b/boost/libs/math/src/tr1/cbrtl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/cbrt.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_cbrtl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/comp_ellint_1.cpp b/boost/libs/math/src/tr1/comp_ellint_1.cpp
new file mode 100644
index 00000000..fe2dab4b
--- /dev/null
+++ b/boost/libs/math/src/tr1/comp_ellint_1.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_1.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/comp_ellint_1f.cpp b/boost/libs/math/src/tr1/comp_ellint_1f.cpp
new file mode 100644
index 00000000..2da9690c
--- /dev/null
+++ b/boost/libs/math/src/tr1/comp_ellint_1f.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_1.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_comp_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/comp_ellint_1l.cpp b/boost/libs/math/src/tr1/comp_ellint_1l.cpp
new file mode 100644
index 00000000..8542c289
--- /dev/null
+++ b/boost/libs/math/src/tr1/comp_ellint_1l.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_1.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_comp_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/comp_ellint_2.cpp b/boost/libs/math/src/tr1/comp_ellint_2.cpp
new file mode 100644
index 00000000..d31fcfa6
--- /dev/null
+++ b/boost/libs/math/src/tr1/comp_ellint_2.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_2.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_comp_ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/comp_ellint_2f.cpp b/boost/libs/math/src/tr1/comp_ellint_2f.cpp
new file mode 100644
index 00000000..99272605
--- /dev/null
+++ b/boost/libs/math/src/tr1/comp_ellint_2f.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_2.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_comp_ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/comp_ellint_2l.cpp b/boost/libs/math/src/tr1/comp_ellint_2l.cpp
new file mode 100644
index 00000000..44da5887
--- /dev/null
+++ b/boost/libs/math/src/tr1/comp_ellint_2l.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_2.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_comp_ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/comp_ellint_3.cpp b/boost/libs/math/src/tr1/comp_ellint_3.cpp
new file mode 100644
index 00000000..dc0704fb
--- /dev/null
+++ b/boost/libs/math/src/tr1/comp_ellint_3.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_3.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_comp_ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double nu) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu);
+}
+
+
diff --git a/boost/libs/math/src/tr1/comp_ellint_3f.cpp b/boost/libs/math/src/tr1/comp_ellint_3f.cpp
new file mode 100644
index 00000000..b72431b1
--- /dev/null
+++ b/boost/libs/math/src/tr1/comp_ellint_3f.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_3.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_comp_ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu);
+}
+
+
diff --git a/boost/libs/math/src/tr1/comp_ellint_3l.cpp b/boost/libs/math/src/tr1/comp_ellint_3l.cpp
new file mode 100644
index 00000000..cc976a6c
--- /dev/null
+++ b/boost/libs/math/src/tr1/comp_ellint_3l.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_3.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_comp_ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double nu) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu);
+}
+
+
diff --git a/boost/libs/math/src/tr1/copysign.cpp b/boost/libs/math/src/tr1/copysign.cpp
new file mode 100644
index 00000000..1bd65fc1
--- /dev/null
+++ b/boost/libs/math/src/tr1/copysign.cpp
@@ -0,0 +1,20 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/sign.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_copysign BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC
+{
+ return boost::math::copysign BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+
+
diff --git a/boost/libs/math/src/tr1/copysignf.cpp b/boost/libs/math/src/tr1/copysignf.cpp
new file mode 100644
index 00000000..fa078c48
--- /dev/null
+++ b/boost/libs/math/src/tr1/copysignf.cpp
@@ -0,0 +1,20 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/sign.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_copysignf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC
+{
+ return boost::math::copysign BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+
+
diff --git a/boost/libs/math/src/tr1/copysignl.cpp b/boost/libs/math/src/tr1/copysignl.cpp
new file mode 100644
index 00000000..624a4f74
--- /dev/null
+++ b/boost/libs/math/src/tr1/copysignl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/sign.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_copysignl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC
+{
+ return boost::math::copysign BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_bessel_i.cpp b/boost/libs/math/src/tr1/cyl_bessel_i.cpp
new file mode 100644
index 00000000..65138aa3
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_bessel_i.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_bessel_if.cpp b/boost/libs/math/src/tr1/cyl_bessel_if.cpp
new file mode 100644
index 00000000..551cd324
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_bessel_if.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_cyl_bessel_if BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_bessel_il.cpp b/boost/libs/math/src/tr1/cyl_bessel_il.cpp
new file mode 100644
index 00000000..6c3bae98
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_bessel_il.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_cyl_bessel_il BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_bessel_j.cpp b/boost/libs/math/src/tr1/cyl_bessel_j.cpp
new file mode 100644
index 00000000..69978ac1
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_bessel_j.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_bessel_jf.cpp b/boost/libs/math/src/tr1/cyl_bessel_jf.cpp
new file mode 100644
index 00000000..a5c572c9
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_bessel_jf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_cyl_bessel_jf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_bessel_jl.cpp b/boost/libs/math/src/tr1/cyl_bessel_jl.cpp
new file mode 100644
index 00000000..03c2cacf
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_bessel_jl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_cyl_bessel_jl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_bessel_k.cpp b/boost/libs/math/src/tr1/cyl_bessel_k.cpp
new file mode 100644
index 00000000..08861dac
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_bessel_k.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_bessel_kf.cpp b/boost/libs/math/src/tr1/cyl_bessel_kf.cpp
new file mode 100644
index 00000000..ffa94501
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_bessel_kf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_cyl_bessel_kf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_bessel_kl.cpp b/boost/libs/math/src/tr1/cyl_bessel_kl.cpp
new file mode 100644
index 00000000..71262410
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_bessel_kl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_cyl_bessel_kl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_neumann.cpp b/boost/libs/math/src/tr1/cyl_neumann.cpp
new file mode 100644
index 00000000..7cc3868c
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_neumann.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_neumannf.cpp b/boost/libs/math/src/tr1/cyl_neumannf.cpp
new file mode 100644
index 00000000..3fd9e3d2
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_neumannf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_cyl_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/cyl_neumannl.cpp b/boost/libs/math/src/tr1/cyl_neumannl.cpp
new file mode 100644
index 00000000..373efc67
--- /dev/null
+++ b/boost/libs/math/src/tr1/cyl_neumannl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_cyl_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/ellint_1.cpp b/boost/libs/math/src/tr1/ellint_1.cpp
new file mode 100644
index 00000000..d0c33726
--- /dev/null
+++ b/boost/libs/math/src/tr1/ellint_1.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_1.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi);
+}
+
+
diff --git a/boost/libs/math/src/tr1/ellint_1f.cpp b/boost/libs/math/src/tr1/ellint_1f.cpp
new file mode 100644
index 00000000..e04b4aa7
--- /dev/null
+++ b/boost/libs/math/src/tr1/ellint_1f.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_1.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi);
+}
+
+
diff --git a/boost/libs/math/src/tr1/ellint_1l.cpp b/boost/libs/math/src/tr1/ellint_1l.cpp
new file mode 100644
index 00000000..b670f959
--- /dev/null
+++ b/boost/libs/math/src/tr1/ellint_1l.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_1.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi);
+}
+
+
diff --git a/boost/libs/math/src/tr1/ellint_2.cpp b/boost/libs/math/src/tr1/ellint_2.cpp
new file mode 100644
index 00000000..22078bf3
--- /dev/null
+++ b/boost/libs/math/src/tr1/ellint_2.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_2.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi);
+}
+
+
diff --git a/boost/libs/math/src/tr1/ellint_2f.cpp b/boost/libs/math/src/tr1/ellint_2f.cpp
new file mode 100644
index 00000000..8841579c
--- /dev/null
+++ b/boost/libs/math/src/tr1/ellint_2f.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_2.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi);
+}
+
+
diff --git a/boost/libs/math/src/tr1/ellint_2l.cpp b/boost/libs/math/src/tr1/ellint_2l.cpp
new file mode 100644
index 00000000..8ea53607
--- /dev/null
+++ b/boost/libs/math/src/tr1/ellint_2l.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_2.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi);
+}
+
+
diff --git a/boost/libs/math/src/tr1/ellint_3.cpp b/boost/libs/math/src/tr1/ellint_3.cpp
new file mode 100644
index 00000000..4836071a
--- /dev/null
+++ b/boost/libs/math/src/tr1/ellint_3.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_3.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double nu, double phi) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi);
+}
+
+
diff --git a/boost/libs/math/src/tr1/ellint_3f.cpp b/boost/libs/math/src/tr1/ellint_3f.cpp
new file mode 100644
index 00000000..e876184b
--- /dev/null
+++ b/boost/libs/math/src/tr1/ellint_3f.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_3.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu, float phi) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi);
+}
+
+
diff --git a/boost/libs/math/src/tr1/ellint_3l.cpp b/boost/libs/math/src/tr1/ellint_3l.cpp
new file mode 100644
index 00000000..999a8f79
--- /dev/null
+++ b/boost/libs/math/src/tr1/ellint_3l.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/ellint_3.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double nu, long double phi) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi);
+}
+
+
diff --git a/boost/libs/math/src/tr1/erf.cpp b/boost/libs/math/src/tr1/erf.cpp
new file mode 100644
index 00000000..d61f7f3f
--- /dev/null
+++ b/boost/libs/math/src/tr1/erf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/erf.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_erf BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::erf BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/erfc.cpp b/boost/libs/math/src/tr1/erfc.cpp
new file mode 100644
index 00000000..dc6ab920
--- /dev/null
+++ b/boost/libs/math/src/tr1/erfc.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/erf.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_erfc BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::erfc BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/erfcf.cpp b/boost/libs/math/src/tr1/erfcf.cpp
new file mode 100644
index 00000000..c0d613aa
--- /dev/null
+++ b/boost/libs/math/src/tr1/erfcf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/erf.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_erfcf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::erfc BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/erfcl.cpp b/boost/libs/math/src/tr1/erfcl.cpp
new file mode 100644
index 00000000..e3eade3d
--- /dev/null
+++ b/boost/libs/math/src/tr1/erfcl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/erf.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_erfcl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::erfc BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/erff.cpp b/boost/libs/math/src/tr1/erff.cpp
new file mode 100644
index 00000000..2c112d17
--- /dev/null
+++ b/boost/libs/math/src/tr1/erff.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/erf.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_erff BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::erf BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/erfl.cpp b/boost/libs/math/src/tr1/erfl.cpp
new file mode 100644
index 00000000..084ca2b6
--- /dev/null
+++ b/boost/libs/math/src/tr1/erfl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/erf.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_erfl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::erf BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/expint.cpp b/boost/libs/math/src/tr1/expint.cpp
new file mode 100644
index 00000000..0e7d938f
--- /dev/null
+++ b/boost/libs/math/src/tr1/expint.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/expint.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_expint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::expint BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/expintf.cpp b/boost/libs/math/src/tr1/expintf.cpp
new file mode 100644
index 00000000..387ca7a8
--- /dev/null
+++ b/boost/libs/math/src/tr1/expintf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/expint.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_expintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::expint BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/expintl.cpp b/boost/libs/math/src/tr1/expintl.cpp
new file mode 100644
index 00000000..a8651698
--- /dev/null
+++ b/boost/libs/math/src/tr1/expintl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/expint.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_expintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::expint BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/expm1.cpp b/boost/libs/math/src/tr1/expm1.cpp
new file mode 100644
index 00000000..c50b9ebc
--- /dev/null
+++ b/boost/libs/math/src/tr1/expm1.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/expm1.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/expm1f.cpp b/boost/libs/math/src/tr1/expm1f.cpp
new file mode 100644
index 00000000..fdefdeda
--- /dev/null
+++ b/boost/libs/math/src/tr1/expm1f.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/expm1.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_expm1f BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/expm1l.cpp b/boost/libs/math/src/tr1/expm1l.cpp
new file mode 100644
index 00000000..ee19e4d6
--- /dev/null
+++ b/boost/libs/math/src/tr1/expm1l.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/expm1.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_expm1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/fmax.cpp b/boost/libs/math/src/tr1/fmax.cpp
new file mode 100644
index 00000000..c0f28b84
--- /dev/null
+++ b/boost/libs/math/src/tr1/fmax.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/fpclassify.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_fmax BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC
+{
+ if((boost::math::isnan)(x))
+ return y;
+ if((boost::math::isnan)(y))
+ return x;
+ return (std::max)(x, y);
+}
+
+
diff --git a/boost/libs/math/src/tr1/fmaxf.cpp b/boost/libs/math/src/tr1/fmaxf.cpp
new file mode 100644
index 00000000..856a929b
--- /dev/null
+++ b/boost/libs/math/src/tr1/fmaxf.cpp
@@ -0,0 +1,24 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/fpclassify.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_fmaxf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC
+{
+ if((boost::math::isnan)(x))
+ return y;
+ if((boost::math::isnan)(y))
+ return x;
+ return (std::max)(x, y);
+}
+
+
+
diff --git a/boost/libs/math/src/tr1/fmaxl.cpp b/boost/libs/math/src/tr1/fmaxl.cpp
new file mode 100644
index 00000000..4b5793e6
--- /dev/null
+++ b/boost/libs/math/src/tr1/fmaxl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/fpclassify.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_fmaxl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC
+{
+ if((boost::math::isnan)(x))
+ return y;
+ if((boost::math::isnan)(y))
+ return x;
+ return (std::max)(x, y);
+}
+
+
diff --git a/boost/libs/math/src/tr1/fmin.cpp b/boost/libs/math/src/tr1/fmin.cpp
new file mode 100644
index 00000000..afcb90a5
--- /dev/null
+++ b/boost/libs/math/src/tr1/fmin.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/fpclassify.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_fmin BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC
+{
+ if((boost::math::isnan)(x))
+ return y;
+ if((boost::math::isnan)(y))
+ return x;
+ return (std::min)(x, y);
+}
+
+
diff --git a/boost/libs/math/src/tr1/fminf.cpp b/boost/libs/math/src/tr1/fminf.cpp
new file mode 100644
index 00000000..5332d780
--- /dev/null
+++ b/boost/libs/math/src/tr1/fminf.cpp
@@ -0,0 +1,24 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/fpclassify.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_fminf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC
+{
+ if((boost::math::isnan)(x))
+ return y;
+ if((boost::math::isnan)(y))
+ return x;
+ return (std::min)(x, y);
+}
+
+
+
diff --git a/boost/libs/math/src/tr1/fminl.cpp b/boost/libs/math/src/tr1/fminl.cpp
new file mode 100644
index 00000000..4b985fce
--- /dev/null
+++ b/boost/libs/math/src/tr1/fminl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/fpclassify.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_fminl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC
+{
+ if((boost::math::isnan)(x))
+ return y;
+ if((boost::math::isnan)(y))
+ return x;
+ return (std::min)(x, y);
+}
+
+
diff --git a/boost/libs/math/src/tr1/fpclassify.cpp b/boost/libs/math/src/tr1/fpclassify.cpp
new file mode 100644
index 00000000..454b6aa9
--- /dev/null
+++ b/boost/libs/math/src/tr1/fpclassify.cpp
@@ -0,0 +1,56 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/fpclassify.hpp>
+#include <boost/math/special_functions/sign.hpp>
+#include "c_policy.hpp"
+
+#if defined (_MSC_VER)
+# pragma warning(push)
+# pragma warning (disable: 4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
+#endif
+
+namespace boost{ namespace math{ namespace tr1{
+
+template<> bool BOOST_MATH_TR1_DECL signbit<double> BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
+{
+ return static_cast<bool>((boost::math::signbit)(x));
+}
+
+template<> int BOOST_MATH_TR1_DECL fpclassify<double> BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
+{
+ return (boost::math::fpclassify)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isfinite<double> BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
+{
+ return (boost::math::isfinite)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isinf<double> BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
+{
+ return (boost::math::isinf)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isnan<double> BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
+{
+ return (boost::math::isnan)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isnormal<double> BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
+{
+ return (boost::math::isnormal)(x);
+}
+
+}}} // namespace boost{ namespace math{ namespace tr1{
+
+#if defined (_MSC_VER)
+# pragma warning(pop)
+#endif
diff --git a/boost/libs/math/src/tr1/fpclassifyf.cpp b/boost/libs/math/src/tr1/fpclassifyf.cpp
new file mode 100644
index 00000000..cdf1c07e
--- /dev/null
+++ b/boost/libs/math/src/tr1/fpclassifyf.cpp
@@ -0,0 +1,58 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/fpclassify.hpp>
+#include <boost/math/special_functions/sign.hpp>
+#include "c_policy.hpp"
+
+#if defined (_MSC_VER)
+# pragma warning(push)
+# pragma warning (disable: 4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
+#endif
+
+namespace boost{ namespace math{ namespace tr1{
+
+template<> bool BOOST_MATH_TR1_DECL signbit<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
+{
+ return static_cast<bool>((boost::math::signbit)(x));
+}
+
+template<> int BOOST_MATH_TR1_DECL fpclassify<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
+{
+ return (boost::math::fpclassify)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isfinite<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
+{
+ return (boost::math::isfinite)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isinf<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
+{
+ return (boost::math::isinf)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isnan<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
+{
+ return (boost::math::isnan)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isnormal<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
+{
+ return (boost::math::isnormal)(x);
+}
+
+}}} // namespace boost{ namespace math{ namespace tr1{
+
+#if defined (_MSC_VER)
+# pragma warning(pop)
+#endif
+
+
diff --git a/boost/libs/math/src/tr1/fpclassifyl.cpp b/boost/libs/math/src/tr1/fpclassifyl.cpp
new file mode 100644
index 00000000..17720178
--- /dev/null
+++ b/boost/libs/math/src/tr1/fpclassifyl.cpp
@@ -0,0 +1,57 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/fpclassify.hpp>
+#include <boost/math/special_functions/sign.hpp>
+#include "c_policy.hpp"
+
+#if defined (_MSC_VER)
+# pragma warning(push)
+# pragma warning (disable: 4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
+#endif
+
+namespace boost{ namespace math{ namespace tr1{
+
+template<> bool BOOST_MATH_TR1_DECL signbit<long double> BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
+{
+ return static_cast<bool>((boost::math::signbit)(x));
+}
+
+template<> int BOOST_MATH_TR1_DECL fpclassify<long double> BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
+{
+ return (boost::math::fpclassify)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isfinite<long double> BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
+{
+ return (boost::math::isfinite)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isinf<long double> BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
+{
+ return (boost::math::isinf)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isnan<long double> BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
+{
+ return (boost::math::isnan)(x);
+}
+
+template<> bool BOOST_MATH_TR1_DECL isnormal<long double> BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
+{
+ return (boost::math::isnormal)(x);
+}
+
+}}} // namespace boost{ namespace math{ namespace tr1{
+
+#if defined (_MSC_VER)
+# pragma warning(pop)
+#endif
+
diff --git a/boost/libs/math/src/tr1/hermite.cpp b/boost/libs/math/src/tr1/hermite.cpp
new file mode 100644
index 00000000..0fe30fb5
--- /dev/null
+++ b/boost/libs/math/src/tr1/hermite.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/hermite.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::hermite BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/hermitef.cpp b/boost/libs/math/src/tr1/hermitef.cpp
new file mode 100644
index 00000000..3648c05e
--- /dev/null
+++ b/boost/libs/math/src/tr1/hermitef.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/hermite.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_hermitef BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::hermite BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/hermitel.cpp b/boost/libs/math/src/tr1/hermitel.cpp
new file mode 100644
index 00000000..55befe96
--- /dev/null
+++ b/boost/libs/math/src/tr1/hermitel.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/hermite.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_hermitel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::hermite BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/hypot.cpp b/boost/libs/math/src/tr1/hypot.cpp
new file mode 100644
index 00000000..9ed1f7a1
--- /dev/null
+++ b/boost/libs/math/src/tr1/hypot.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/hypot.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" double BOOST_MATH_TR1_DECL boost_hypot BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::hypot BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/hypotf.cpp b/boost/libs/math/src/tr1/hypotf.cpp
new file mode 100644
index 00000000..79239bfd
--- /dev/null
+++ b/boost/libs/math/src/tr1/hypotf.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/hypot.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" float BOOST_MATH_TR1_DECL boost_hypotf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::hypot BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/hypotl.cpp b/boost/libs/math/src/tr1/hypotl.cpp
new file mode 100644
index 00000000..ee162757
--- /dev/null
+++ b/boost/libs/math/src/tr1/hypotl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/hypot.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_hypotl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::hypot BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/laguerre.cpp b/boost/libs/math/src/tr1/laguerre.cpp
new file mode 100644
index 00000000..4237c3f8
--- /dev/null
+++ b/boost/libs/math/src/tr1/laguerre.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/laguerre.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/laguerref.cpp b/boost/libs/math/src/tr1/laguerref.cpp
new file mode 100644
index 00000000..843e6e2b
--- /dev/null
+++ b/boost/libs/math/src/tr1/laguerref.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/laguerre.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/laguerrel.cpp b/boost/libs/math/src/tr1/laguerrel.cpp
new file mode 100644
index 00000000..76b35342
--- /dev/null
+++ b/boost/libs/math/src/tr1/laguerrel.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/laguerre.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/legendre.cpp b/boost/libs/math/src/tr1/legendre.cpp
new file mode 100644
index 00000000..d5c0e775
--- /dev/null
+++ b/boost/libs/math/src/tr1/legendre.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/legendre.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::legendre_p BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/legendref.cpp b/boost/libs/math/src/tr1/legendref.cpp
new file mode 100644
index 00000000..90836271
--- /dev/null
+++ b/boost/libs/math/src/tr1/legendref.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/legendre.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::legendre_p BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/legendrel.cpp b/boost/libs/math/src/tr1/legendrel.cpp
new file mode 100644
index 00000000..491b3f2a
--- /dev/null
+++ b/boost/libs/math/src/tr1/legendrel.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/legendre.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::legendre_p BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/lgamma.cpp b/boost/libs/math/src/tr1/lgamma.cpp
new file mode 100644
index 00000000..e3c33be5
--- /dev/null
+++ b/boost/libs/math/src/tr1/lgamma.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/gamma.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" double BOOST_MATH_TR1_DECL boost_lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/lgammaf.cpp b/boost/libs/math/src/tr1/lgammaf.cpp
new file mode 100644
index 00000000..a58040c7
--- /dev/null
+++ b/boost/libs/math/src/tr1/lgammaf.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/gamma.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" float BOOST_MATH_TR1_DECL boost_lgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/lgammal.cpp b/boost/libs/math/src/tr1/lgammal.cpp
new file mode 100644
index 00000000..611656bf
--- /dev/null
+++ b/boost/libs/math/src/tr1/lgammal.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/gamma.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_lgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/llround.cpp b/boost/libs/math/src/tr1/llround.cpp
new file mode 100644
index 00000000..e4212d11
--- /dev/null
+++ b/boost/libs/math/src/tr1/llround.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/round.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" boost::long_long_type BOOST_MATH_TR1_DECL boost_llround BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::llround BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/llroundf.cpp b/boost/libs/math/src/tr1/llroundf.cpp
new file mode 100644
index 00000000..c7dd06ee
--- /dev/null
+++ b/boost/libs/math/src/tr1/llroundf.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/round.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" boost::long_long_type BOOST_MATH_TR1_DECL boost_llroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::llround BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/llroundl.cpp b/boost/libs/math/src/tr1/llroundl.cpp
new file mode 100644
index 00000000..fb9bf60b
--- /dev/null
+++ b/boost/libs/math/src/tr1/llroundl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/round.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" boost::long_long_type BOOST_MATH_TR1_DECL boost_llroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::llround BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/log1p.cpp b/boost/libs/math/src/tr1/log1p.cpp
new file mode 100644
index 00000000..230db26a
--- /dev/null
+++ b/boost/libs/math/src/tr1/log1p.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/log1p.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" double BOOST_MATH_TR1_DECL boost_log1p BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::log1p BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/log1pf.cpp b/boost/libs/math/src/tr1/log1pf.cpp
new file mode 100644
index 00000000..2ca85648
--- /dev/null
+++ b/boost/libs/math/src/tr1/log1pf.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/log1p.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" float BOOST_MATH_TR1_DECL boost_log1pf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::log1p BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/log1pl.cpp b/boost/libs/math/src/tr1/log1pl.cpp
new file mode 100644
index 00000000..36f95922
--- /dev/null
+++ b/boost/libs/math/src/tr1/log1pl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/log1p.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_log1pl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::log1p BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/lround.cpp b/boost/libs/math/src/tr1/lround.cpp
new file mode 100644
index 00000000..ae42dba3
--- /dev/null
+++ b/boost/libs/math/src/tr1/lround.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/round.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long BOOST_MATH_TR1_DECL boost_lround BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::lround BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/lroundf.cpp b/boost/libs/math/src/tr1/lroundf.cpp
new file mode 100644
index 00000000..747a4d44
--- /dev/null
+++ b/boost/libs/math/src/tr1/lroundf.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/round.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long BOOST_MATH_TR1_DECL boost_lroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::lround BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/lroundl.cpp b/boost/libs/math/src/tr1/lroundl.cpp
new file mode 100644
index 00000000..95fab0a8
--- /dev/null
+++ b/boost/libs/math/src/tr1/lroundl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/round.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long BOOST_MATH_TR1_DECL boost_lroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::lround BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/nextafter.cpp b/boost/libs/math/src/tr1/nextafter.cpp
new file mode 100644
index 00000000..008d8aae
--- /dev/null
+++ b/boost/libs/math/src/tr1/nextafter.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/next.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" double BOOST_MATH_TR1_DECL boost_nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/nextafterf.cpp b/boost/libs/math/src/tr1/nextafterf.cpp
new file mode 100644
index 00000000..784a1c7b
--- /dev/null
+++ b/boost/libs/math/src/tr1/nextafterf.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/next.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" float BOOST_MATH_TR1_DECL boost_nextafterf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/nextafterl.cpp b/boost/libs/math/src/tr1/nextafterl.cpp
new file mode 100644
index 00000000..e1cba3f1
--- /dev/null
+++ b/boost/libs/math/src/tr1/nextafterl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/next.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_nextafterl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/nexttoward.cpp b/boost/libs/math/src/tr1/nexttoward.cpp
new file mode 100644
index 00000000..7ce4e0ab
--- /dev/null
+++ b/boost/libs/math/src/tr1/nexttoward.cpp
@@ -0,0 +1,27 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/next.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" double BOOST_MATH_TR1_DECL boost_nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(double x, long double y) BOOST_MATH_C99_THROW_SPEC
+{
+#ifdef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+ return c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(x, (double)y);
+#else
+ return (double)c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION((long double)x, y);
+#endif
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/nexttowardf.cpp b/boost/libs/math/src/tr1/nexttowardf.cpp
new file mode 100644
index 00000000..ea7b83c5
--- /dev/null
+++ b/boost/libs/math/src/tr1/nexttowardf.cpp
@@ -0,0 +1,27 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/next.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" float BOOST_MATH_TR1_DECL boost_nexttowardf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, long double y) BOOST_MATH_C99_THROW_SPEC
+{
+#ifdef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+ return (float)c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION((double)x, (double)y);
+#else
+ return (float)c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION((long double)x, y);
+#endif
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/nexttowardl.cpp b/boost/libs/math/src/tr1/nexttowardl.cpp
new file mode 100644
index 00000000..6e1ddb05
--- /dev/null
+++ b/boost/libs/math/src/tr1/nexttowardl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/next.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_nexttowardl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(x, y);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/pch.hpp b/boost/libs/math/src/tr1/pch.hpp
new file mode 100644
index 00000000..ad6a0df9
--- /dev/null
+++ b/boost/libs/math/src/tr1/pch.hpp
@@ -0,0 +1,12 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#ifdef BOOST_BUILD_PCH_ENABLED
+
+#define BOOST_MATH_TR1_SOURCE
+#include <boost/math/special_functions.hpp>
+
+#endif
+
diff --git a/boost/libs/math/src/tr1/riemann_zeta.cpp b/boost/libs/math/src/tr1/riemann_zeta.cpp
new file mode 100644
index 00000000..56fa0936
--- /dev/null
+++ b/boost/libs/math/src/tr1/riemann_zeta.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/zeta.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::zeta BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/riemann_zetaf.cpp b/boost/libs/math/src/tr1/riemann_zetaf.cpp
new file mode 100644
index 00000000..1635b7a2
--- /dev/null
+++ b/boost/libs/math/src/tr1/riemann_zetaf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/zeta.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_riemann_zetaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::zeta BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/riemann_zetal.cpp b/boost/libs/math/src/tr1/riemann_zetal.cpp
new file mode 100644
index 00000000..a68ccb09
--- /dev/null
+++ b/boost/libs/math/src/tr1/riemann_zetal.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/zeta.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_riemann_zetal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::zeta BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/round.cpp b/boost/libs/math/src/tr1/round.cpp
new file mode 100644
index 00000000..b61f901e
--- /dev/null
+++ b/boost/libs/math/src/tr1/round.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/round.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" double BOOST_MATH_TR1_DECL boost_round BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::round BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/roundf.cpp b/boost/libs/math/src/tr1/roundf.cpp
new file mode 100644
index 00000000..f647625d
--- /dev/null
+++ b/boost/libs/math/src/tr1/roundf.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/round.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" float BOOST_MATH_TR1_DECL boost_roundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::round BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/roundl.cpp b/boost/libs/math/src/tr1/roundl.cpp
new file mode 100644
index 00000000..1554956a
--- /dev/null
+++ b/boost/libs/math/src/tr1/roundl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/round.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_roundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::round BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/sph_bessel.cpp b/boost/libs/math/src/tr1/sph_bessel.cpp
new file mode 100644
index 00000000..1a24a9d7
--- /dev/null
+++ b/boost/libs/math/src/tr1/sph_bessel.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/sph_besself.cpp b/boost/libs/math/src/tr1/sph_besself.cpp
new file mode 100644
index 00000000..06ab66af
--- /dev/null
+++ b/boost/libs/math/src/tr1/sph_besself.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_sph_besself BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/sph_bessell.cpp b/boost/libs/math/src/tr1/sph_bessell.cpp
new file mode 100644
index 00000000..a93795d1
--- /dev/null
+++ b/boost/libs/math/src/tr1/sph_bessell.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_sph_bessell BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/sph_legendre.cpp b/boost/libs/math/src/tr1/sph_legendre.cpp
new file mode 100644
index 00000000..e281220a
--- /dev/null
+++ b/boost/libs/math/src/tr1/sph_legendre.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/spherical_harmonic.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return (m & 1 ? -1 : 1) * c_policies::spherical_harmonic_r BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x, 0.0);
+}
+
+
diff --git a/boost/libs/math/src/tr1/sph_legendref.cpp b/boost/libs/math/src/tr1/sph_legendref.cpp
new file mode 100644
index 00000000..329aba82
--- /dev/null
+++ b/boost/libs/math/src/tr1/sph_legendref.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/spherical_harmonic.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_sph_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return (m & 1 ? -1 : 1) * c_policies::spherical_harmonic_r BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x, 0.0f);
+}
+
+
diff --git a/boost/libs/math/src/tr1/sph_legendrel.cpp b/boost/libs/math/src/tr1/sph_legendrel.cpp
new file mode 100644
index 00000000..d42492c1
--- /dev/null
+++ b/boost/libs/math/src/tr1/sph_legendrel.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/spherical_harmonic.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_sph_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return (m & 1 ? -1 : 1) * c_policies::spherical_harmonic_r BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x, 0.0L);
+}
+
+
diff --git a/boost/libs/math/src/tr1/sph_neumann.cpp b/boost/libs/math/src/tr1/sph_neumann.cpp
new file mode 100644
index 00000000..3adba76f
--- /dev/null
+++ b/boost/libs/math/src/tr1/sph_neumann.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" double BOOST_MATH_TR1_DECL boost_sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/sph_neumannf.cpp b/boost/libs/math/src/tr1/sph_neumannf.cpp
new file mode 100644
index 00000000..af51473b
--- /dev/null
+++ b/boost/libs/math/src/tr1/sph_neumannf.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" float BOOST_MATH_TR1_DECL boost_sph_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/sph_neumannl.cpp b/boost/libs/math/src/tr1/sph_neumannl.cpp
new file mode 100644
index 00000000..1fc7a4e8
--- /dev/null
+++ b/boost/libs/math/src/tr1/sph_neumannl.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/bessel.hpp>
+#include "c_policy.hpp"
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_sph_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(n, x);
+}
+
+
diff --git a/boost/libs/math/src/tr1/tgamma.cpp b/boost/libs/math/src/tr1/tgamma.cpp
new file mode 100644
index 00000000..dfb407be
--- /dev/null
+++ b/boost/libs/math/src/tr1/tgamma.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/gamma.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" double BOOST_MATH_TR1_DECL boost_tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/tgammaf.cpp b/boost/libs/math/src/tr1/tgammaf.cpp
new file mode 100644
index 00000000..a19ef047
--- /dev/null
+++ b/boost/libs/math/src/tr1/tgammaf.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/gamma.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" float BOOST_MATH_TR1_DECL boost_tgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/tgammal.cpp b/boost/libs/math/src/tr1/tgammal.cpp
new file mode 100644
index 00000000..7a67273c
--- /dev/null
+++ b/boost/libs/math/src/tr1/tgammal.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/gamma.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_tgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/trunc.cpp b/boost/libs/math/src/tr1/trunc.cpp
new file mode 100644
index 00000000..50498305
--- /dev/null
+++ b/boost/libs/math/src/tr1/trunc.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/trunc.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" double BOOST_MATH_TR1_DECL boost_trunc BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::trunc BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/truncf.cpp b/boost/libs/math/src/tr1/truncf.cpp
new file mode 100644
index 00000000..c0057658
--- /dev/null
+++ b/boost/libs/math/src/tr1/truncf.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/trunc.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" float BOOST_MATH_TR1_DECL boost_truncf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::trunc BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+
diff --git a/boost/libs/math/src/tr1/truncl.cpp b/boost/libs/math/src/tr1/truncl.cpp
new file mode 100644
index 00000000..9a469c36
--- /dev/null
+++ b/boost/libs/math/src/tr1/truncl.cpp
@@ -0,0 +1,23 @@
+// Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+# include <pch.hpp>
+#ifndef BOOST_MATH_TR1_SOURCE
+# define BOOST_MATH_TR1_SOURCE
+#endif
+#include <boost/math/tr1.hpp>
+#include <boost/math/special_functions/trunc.hpp>
+#include "c_policy.hpp"
+
+namespace boost{ namespace math{ namespace tr1{
+
+extern "C" long double BOOST_MATH_TR1_DECL boost_truncl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC
+{
+ return c_policies::trunc BOOST_PREVENT_MACRO_SUBSTITUTION(x);
+}
+
+}}}
+
+