File: test_no_long_double_policy.cpp

package info (click to toggle)
boost1.83 1.83.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 545,632 kB
  • sloc: cpp: 3,857,086; xml: 125,552; ansic: 34,414; python: 25,887; asm: 5,276; sh: 4,799; ada: 1,681; makefile: 1,629; perl: 1,212; pascal: 1,139; sql: 810; yacc: 478; ruby: 102; lisp: 24; csh: 6
file content (101 lines) | stat: -rw-r--r-- 3,529 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
//  Copyright John Maddock 2020.
//  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)

#define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
#include <boost/math/tools/config.hpp>
//
// Poison the long double std math functions so we can find accidental usage of these
// when the user has requested that we do *not* use them.
//
namespace poison {
long double abs(long double, void* = 0);
long double fabs(long double, void* = 0);
long double sin(long double, void* = 0);
long double cos(long double, void* = 0);
long double tan(long double, void* = 0);
long double asin(long double, void* = 0);
long double acos(long double, void* = 0);
long double atan(long double, void* = 0);
long double exp(long double, void* = 0);
long double log(long double, void* = 0);
long double pow(long double, long double, void* = 0);
long double fmod(long double, long double, void* = 0);
long double modf(long double, long double*, void* = 0);
long double cosh(long double, void* = 0);
long double sinh(long double, void* = 0);
long double tanh(long double, void* = 0);
long double frexp(long double, void*);
long double ldexp(long double, short);
long double atan2(long double, long double, void* = 0);
long double ceil(long double, void* = 0);
long double floor(long double, void* = 0);
long double log10(long double, void* = 0);
long double sqrt(long double, void* = 0);
} // namespace poison

#undef BOOST_MATH_STD_USING_CORE
#undef BOOST_MATH_STD_USING

#define BOOST_MATH_STD_USING_CORE \
   using std::abs;                \
   using std::acos;               \
   using std::cos;                \
   using std::fmod;               \
   using std::modf;               \
   using std::tan;                \
   using std::asin;               \
   using std::cosh;               \
   using std::frexp;              \
   using std::pow;                \
   using std::tanh;               \
   using std::atan;               \
   using std::exp;                \
   using std::ldexp;              \
   using std::sin;                \
   using std::atan2;              \
   using std::fabs;               \
   using std::log;                \
   using std::sinh;               \
   using std::ceil;               \
   using std::floor;              \
   using std::log10;              \
   using std::sqrt;                \
   using poison::abs;                \
   using poison::acos;               \
   using poison::cos;                \
   using poison::fmod;               \
   using poison::modf;               \
   using poison::tan;                \
   using poison::asin;               \
   using poison::cosh;               \
   using poison::frexp;              \
   using poison::pow;                \
   using poison::tanh;               \
   using poison::atan;               \
   using poison::exp;                \
   using poison::ldexp;              \
   using poison::sin;                \
   using poison::atan2;              \
   using poison::fabs;               \
   using poison::log;                \
   using poison::sinh;               \
   using poison::ceil;               \
   using poison::floor;              \
   using poison::log10;              \
   using poison::sqrt;

#define BOOST_MATH_STD_USING BOOST_MATH_STD_USING_CORE



#define TEST_GROUP_8
#define TEST_GROUP_9
#include "compile_test/instantiate.hpp"

int main()
{
   //boost::math::foo(0.0L);
   instantiate(0.0);
}