]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/test_no_long_double_policy.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / math / test / test_no_long_double_policy.cpp
1 // Copyright John Maddock 2020.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
7 #include <boost/math/tools/config.hpp>
8 //
9 // Poison the long double std math functions so we can find accidental usage of these
10 // when the user has requested that we do *not* use them.
11 //
12 namespace poison {
13 long double abs(long double, void* = 0);
14 long double fabs(long double, void* = 0);
15 long double sin(long double, void* = 0);
16 long double cos(long double, void* = 0);
17 long double tan(long double, void* = 0);
18 long double asin(long double, void* = 0);
19 long double acos(long double, void* = 0);
20 long double atan(long double, void* = 0);
21 long double exp(long double, void* = 0);
22 long double log(long double, void* = 0);
23 long double pow(long double, long double, void* = 0);
24 long double fmod(long double, long double, void* = 0);
25 long double modf(long double, long double*, void* = 0);
26 long double cosh(long double, void* = 0);
27 long double sinh(long double, void* = 0);
28 long double tanh(long double, void* = 0);
29 long double frexp(long double, void*);
30 long double ldexp(long double, short);
31 long double atan2(long double, long double, void* = 0);
32 long double ceil(long double, void* = 0);
33 long double floor(long double, void* = 0);
34 long double log10(long double, void* = 0);
35 long double sqrt(long double, void* = 0);
36 } // namespace poison
37
38 #undef BOOST_MATH_STD_USING_CORE
39 #undef BOOST_MATH_STD_USING
40
41 #define BOOST_MATH_STD_USING_CORE \
42 using std::abs; \
43 using std::acos; \
44 using std::cos; \
45 using std::fmod; \
46 using std::modf; \
47 using std::tan; \
48 using std::asin; \
49 using std::cosh; \
50 using std::frexp; \
51 using std::pow; \
52 using std::tanh; \
53 using std::atan; \
54 using std::exp; \
55 using std::ldexp; \
56 using std::sin; \
57 using std::atan2; \
58 using std::fabs; \
59 using std::log; \
60 using std::sinh; \
61 using std::ceil; \
62 using std::floor; \
63 using std::log10; \
64 using std::sqrt; \
65 using poison::abs; \
66 using poison::acos; \
67 using poison::cos; \
68 using poison::fmod; \
69 using poison::modf; \
70 using poison::tan; \
71 using poison::asin; \
72 using poison::cosh; \
73 using poison::frexp; \
74 using poison::pow; \
75 using poison::tanh; \
76 using poison::atan; \
77 using poison::exp; \
78 using poison::ldexp; \
79 using poison::sin; \
80 using poison::atan2; \
81 using poison::fabs; \
82 using poison::log; \
83 using poison::sinh; \
84 using poison::ceil; \
85 using poison::floor; \
86 using poison::log10; \
87 using poison::sqrt;
88
89 #define BOOST_MATH_STD_USING BOOST_MATH_STD_USING_CORE
90
91
92
93 #define TEST_GROUP_8
94 #define TEST_GROUP_9
95 #include "compile_test/instantiate.hpp"
96
97 int main()
98 {
99 //boost::math::foo(0.0L);
100 instantiate(0.0);
101 }